From: Andrew Dolgov Date: Wed, 28 Dec 2011 10:07:14 +0000 (+0400) Subject: add img[align,hspace] attributes (closes #370) X-Git-Tag: 1.5.9~18 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=97f0b075bf720fb81ae713d9f1309fdc5f86ca12;p=tt-rss.git add img[align,hspace] attributes (closes #370) --- diff --git a/include/functions.php b/include/functions.php index 2ad3bde4..3e926b1a 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2560,7 +2560,7 @@ $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', 'Allowed', $allowed);