1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-20 12:41:17 +01:00

Allow title attr in img and href

This commit is contained in:
8chan 2015-02-25 17:15:18 -08:00
parent 16d9b5d7b7
commit 8db4baccca

View File

@ -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);