mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 17:14:42 +02:00
Improved line-breaks handling and added test.
This commit is contained in:
@@ -2463,6 +2463,7 @@ class e_parse extends e_parser
|
||||
if($this->isHtml($text) === true) // strip any html.
|
||||
{
|
||||
$text = $this->toHTML($text,true);
|
||||
$text = str_replace("\n","",$text); // clean-out line-breaks.
|
||||
$text = str_ireplace( array("<br>","<br />","<br/>"), "\n", $text);
|
||||
$text = strip_tags($text);
|
||||
}
|
||||
|
Reference in New Issue
Block a user