From: Ævar Arnfjörð Bjarmason Date: Fri, 1 Apr 2005 23:24:26 +0000 (+0000) Subject: * Documented X-Git-Tag: 1.5.0alpha1~427 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=c2ddc79b54f6f0f783a81f1a8ae33a8c244ea3a1;p=lhc%2Fweb%2Fwiklou.git * Documented --- 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 +?>