add span.class attribute to purifier.allowed to enable youtube embeds

This commit is contained in:
Andrew Dolgov 2012-01-04 23:02:27 +04:00
parent f6cd767b9f
commit da9f393ad2

View file

@ -2562,7 +2562,7 @@
$config = HTMLPurifier_Config::createDefault(); $config = HTMLPurifier_Config::createDefault();
$allowed = "p,a[href],i,em,b,strong,code,pre,blockquote,br,img[src|alt|title|align|hspace],ul,ol,li,h1,h2,h3,h4,s,object[classid|type|id|name|width|height|codebase],param[name|value],table,tr,td"; $allowed = "p,a[href],i,em,b,strong,code,pre,blockquote,br,img[src|alt|title|align|hspace],ul,ol,li,h1,h2,h3,h4,s,object[classid|type|id|name|width|height|codebase],param[name|value],table,tr,td,span[class]";
$config->set('HTML.SafeObject', true); $config->set('HTML.SafeObject', true);
@$config->set('HTML', 'Allowed', $allowed); @$config->set('HTML', 'Allowed', $allowed);