From 8c69f7ce357c96b230be197842d5f2b38070946e Mon Sep 17 00:00:00 2001 From: Irfan Date: Mon, 28 Jun 2021 22:02:10 +0500 Subject: [PATCH] fix
not converting to newlines --- src/Helper/JString.php | 3 +++ 1 file changed, 3 insertions(+) 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);