]> git.wh0rd.org Git - tt-rss.git/commitdiff
add span.class attribute to purifier.allowed to enable youtube embeds
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 4 Jan 2012 19:02:27 +0000 (23:02 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 4 Jan 2012 19:02:27 +0000 (23:02 +0400)
include/functions.php

index 8894f816209ab24fd69dc772329468dd300c99e6..73c5e39fb544d28b585f6002d9d6f194aeadbe25 100644 (file)
 
                        $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', 'Allowed', $allowed);