From: hannes Date: Mon, 11 Jan 2016 20:54:19 +0000 (+0000) Subject: EndCommonPurify event X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8d331b0f351cab61594991c339f44d5dca8096d5;p=quix0rs-gnu-social.git EndCommonPurify event --- diff --git a/lib/util.php b/lib/util.php index 1d973d7100..c6951200b5 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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)); + + 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