From 8db4baccca9d095db3d549a76f0b335f327591bc Mon Sep 17 00:00:00 2001 From: 8chan Date: Wed, 25 Feb 2015 17:15:18 -0800 Subject: [PATCH] Allow title attr in img and href --- inc/8chan-mod-pages.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/8chan-mod-pages.php b/inc/8chan-mod-pages.php index acc97030..12b3a57a 100644 --- a/inc/8chan-mod-pages.php +++ b/inc/8chan-mod-pages.php @@ -28,7 +28,7 @@ if (!function_exists('purify')){ function purify($s){ $c = HTMLPurifier_Config::createDefault(); - $c->set('HTML.Allowed', 'a[href],p,br,li,ol,ul,strong,em,u,h2,b,i,tt,div,img[src|alt]'); + $c->set('HTML.Allowed', 'a[href|title],p,br,li,ol,ul,strong,em,u,h2,b,i,tt,div,img[src|alt|title],hr'); $uri = $c->getDefinition('URI'); $uri->addFilter(new HTMLPurifier_URIFilter_NoExternalImages(), $c); $purifier = new HTMLPurifier($c);