From c904e8bc0ee1d5a2f1044ae794dc9ed02c9c5e79 Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Date: Mon, 3 Mar 2014 00:26:33 +0100 Subject: [PATCH] Remove ANSI characters on clean --- src/utils/TextFormat.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/TextFormat.php b/src/utils/TextFormat.php index 155949754..c8d946560 100644 --- a/src/utils/TextFormat.php +++ b/src/utils/TextFormat.php @@ -49,7 +49,7 @@ class TextFormat{ } public static function clean($string){ - return preg_replace("/§[0123456789abcdefklmnor]/", "", $string); + return preg_replace(array("/§[0123456789abcdefklmnor]/", "/\\x1b*/"), "", $string); } public static function toHTML($string){