' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html>'.
'<head><title>test</title></head><body>'.$text.'</body></html>';
- # Tidy is known to clobber tabs; convert them to entities
- $wrappedtext = str_replace( "\t", '	', $wrappedtext );
-
if( $wgTidyInternal ) {
$correctedtext = self::execInternalTidy( $wrappedtext );
} else {
return $text . "\n<!-- Tidy found serious XHTML errors -->\n";
}
- # Convert the tabs back from entities
- $correctedtext = str_replace( '	', "\t", $correctedtext );
-
return $correctedtext;
}