add img[align,hspace] attributes (closes #370)

This commit is contained in:
Andrew Dolgov 2011-12-28 14:07:14 +04:00
parent 547e84c4f5
commit 97f0b075bf

View file

@ -2560,7 +2560,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],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";
$config->set('HTML.SafeObject', true); $config->set('HTML.SafeObject', true);
@$config->set('HTML', 'Allowed', $allowed); @$config->set('HTML', 'Allowed', $allowed);