Revert r42257 "Convert literal tabs to 	 when passing them through Tidy, to preven...
[lhc/web/wiklou.git] / includes / parser / Tidy.php
index 3e436c8..49f5d0b 100644 (file)
@@ -31,9 +31,6 @@ class MWTidy {
 ' "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", '&#9;', $wrappedtext );
-
                if( $wgTidyInternal ) {
                        $correctedtext = self::execInternalTidy( $wrappedtext );
                } else {
@@ -44,9 +41,6 @@ class MWTidy {
                        return $text . "\n<!-- Tidy found serious XHTML errors -->\n";
                }
 
-               # Convert the tabs back from entities
-               $correctedtext = str_replace( '&#9;', "\t", $correctedtext );
-
                return $correctedtext;
        }