Simplification in Text Helper's character_limiter()
Because the "\s" regex character class includes \r and \n,
there is no need for the str_replace() part
diff --git a/system/helpers/text_helper.php b/system/helpers/text_helper.php
index 8a1f01b..76dc04a 100644
--- a/system/helpers/text_helper.php
+++ b/system/helpers/text_helper.php
@@ -89,7 +89,7 @@
return $str;
}
- $str = preg_replace('/\s+/', ' ', str_replace(array("\r\n", "\r", "\n"), ' ', $str));
+ $str = preg_replace('/\s+/', ' ', $str);
if (strlen($str) <= $n)
{