Notifications
Clear all
BugOverflow
1
Posty
1
Users
0
Reactions
1,154
Widok
0
13/01/2020 4:24 pm
Topic starter
example config
1 Answer
0
13/01/2020 4:24 pm
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;