Merge branch 'common_purify_branch' into 'nightly'

EndCommonPurify event

Because we have problems with htmLawed on quitter.se, we want to check its output and maybe use another HTML purifier... 

See merge request !78
This commit is contained in:
mmn 2016-01-11 21:14:41 +00:00
commit d07640caba
1 changed files with 5 additions and 2 deletions

View File

@ -593,7 +593,10 @@ function common_purify($html)
$html = common_remove_unicode_formatting($html);
return htmLawed($html, $config);
$purified = htmLawed($html, $config);
Event::handle('EndCommonPurify', array(&$purified, $html));
return $purified;
}
function common_remove_unicode_formatting($text)
@ -2458,4 +2461,4 @@ function html_sprintf()
function _ve($var)
{
return var_export($var, true);
}
}