* 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;
* trailing spaces and one of the newlines.
*
* @access private
+ * @param string $text
+ * @return string
*/
function removeHTMLcomments( $text ) {
$fname='Parser::removeHTMLcomments';
array( 'Sanitizer', 'normalizeCharReferencesCallback' ),
$text );
}
-
+ /**
+ * @param string $matches
+ * @return string
+ */
function normalizeCharReferencesCallback( $matches ) {
$ret = null;
if( $matches[1] != '' ) {
* 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 ) {
}
-?>
\ No newline at end of file
+?>