Forum

HTMLPurifier, remov...
 
Notifications
Clear all

HTMLPurifier, remove images

1 Posty
1 Users
0 Reactions
1,154 Widok
0
Topic starter

example config

1 Answer
0
Topic starter
                                        $config = HTMLPurifier_Config::createDefault();
                                        $config->set('HTML.Allowed','font,u,strong,img,a,p,br,span');
                                        $purifier = new HTMLPurifier($config);
                                        $clean_html = $purifier->purify($MY_HTML);
                                        echo  $clean_html;

Odpowiedź

Author Name

Author Email

Your question *

 
Preview 0 Revisions Saved
Share: