]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
EndCommonPurify event
authorhannes <h@nnesmannerhe.im>
Mon, 11 Jan 2016 20:54:19 +0000 (20:54 +0000)
committerhannes <h@nnesmannerhe.im>
Mon, 11 Jan 2016 20:54:19 +0000 (20:54 +0000)
lib/util.php

index 1d973d710031cc56054a4608998319ac5500095f..c6951200b52ac106d794233fa6c414c69f9f70d6 100644 (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));
+    
+    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