diff options
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 8a44e8bee..f8ea2503e 100644 --- a/functions.php +++ b/functions.php @@ -114,9 +114,13 @@ $config = HTMLPurifier_Config::createDefault(); - $allowed = "p,a[href],i,em,b,strong,code,pre,blockquote,br,img[src|alt|title],ul,ol,li,h1,h2,h3,h4,s"; + $allowed = "p,a[href],i,em,b,strong,code,pre,blockquote,br,img[src|alt|title],ul,ol,li,h1,h2,h3,h4,s,object[classid|type|id|name|width|height|codebase],param[name|value]"; + $config->set('HTML.SafeObject', true); $config->set('HTML', 'Allowed', $allowed); + $config->set('Output.FlashCompat', true); + $config->set('Attr.EnableID', true); + $purifier = new HTMLPurifier($config); /** |