From c2ddc79b54f6f0f783a81f1a8ae33a8c244ea3a1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Fri, 1 Apr 2005 23:24:26 +0000 Subject: [PATCH] * Documented --- includes/Sanitizer.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index fec5d720be..576bd4423a 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -29,6 +29,8 @@ class Sanitizer { * Cleans up HTML, removes dangerous tags and attributes, and * removes HTML comments * @access private + * @param string $text + * @return string */ function removeHTMLtags( $text ) { global $wgUseTidy, $wgUserHtml; @@ -149,6 +151,8 @@ class Sanitizer { * trailing spaces and one of the newlines. * * @access private + * @param string $text + * @return string */ function removeHTMLcomments( $text ) { $fname='Parser::removeHTMLcomments'; @@ -322,7 +326,10 @@ class Sanitizer { array( 'Sanitizer', 'normalizeCharReferencesCallback' ), $text ); } - + /** + * @param string $matches + * @return string + */ function normalizeCharReferencesCallback( $matches ) { $ret = null; if( $matches[1] != '' ) { @@ -346,6 +353,7 @@ class Sanitizer { * return the named entity reference as is. Otherwise, returns * HTML-escaped text of pseudo-entity source (eg &foo;) * + * @param string $name * @return string */ function normalizeEntity( $name ) { @@ -823,4 +831,4 @@ class Sanitizer { } -?> \ No newline at end of file +?> -- 2.20.1