diff --git a/src/Helper/JString.php b/src/Helper/JString.php index a7ccdccb..941b5c6d 100644 --- a/src/Helper/JString.php +++ b/src/Helper/JString.php @@ -17,6 +17,9 @@ class JString public static function cleanse(string $string): string { // convert any html before hand to new line + $string = str_replace( + ["
", "
", "
", "
"], "\\n", $string + ); // remove control characters $string = preg_replace('~[[:cntrl:]]~', "", $string);