Remove ANSI characters on clean

This commit is contained in:
Shoghi Cervantes 2014-03-03 00:26:33 +01:00
parent 12ddf530b1
commit c904e8bc0e

View File

@ -49,7 +49,7 @@ class TextFormat{
} }
public static function clean($string){ public static function clean($string){
return preg_replace("/§[0123456789abcdefklmnor]/", "", $string); return preg_replace(array("/§[0123456789abcdefklmnor]/", "/\\x1b*/"), "", $string);
} }
public static function toHTML($string){ public static function toHTML($string){