diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index 8906d9735..aefaf5ed1 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -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("
","
","
"), "\n", $text); $text = strip_tags($text); } diff --git a/e107_tests/tests/unit/e_parseTest.php b/e107_tests/tests/unit/e_parseTest.php index b3bbb463c..b32e8248b 100644 --- a/e107_tests/tests/unit/e_parseTest.php +++ b/e107_tests/tests/unit/e_parseTest.php @@ -497,6 +497,7 @@ TMP; $arr = array( 0 => array('html'=>"

My Caption

", 'expected' => 'My Caption'), 1 => array('html'=>"

My Caption

", 'expected' => 'My Caption'), + 2 => array('html'=>'Line 1
Line 2
Line 3
', 'expected'=> "Line 1\nLine 2\nLine 3\n"), );