We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit d07640ca authored by mattl's avatar mattl

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
parents e4a1dff9 a1b509bb
......@@ -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);
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment