1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-11 00:54:49 +02:00

Parser: Fix for line-breaks when converting HTML back to plain text.

This commit is contained in:
Cameron
2020-02-02 14:54:29 -08:00
parent 955af62106
commit e15a10234e
2 changed files with 2 additions and 0 deletions

View File

@@ -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_ireplace( array("<br>","<br />","<br/>"), "\n", $text);
$text = strip_tags($text);
}