From d915d249ee1a5c688d85d44220bc96364e4dda7e Mon Sep 17 00:00:00 2001 From: Cameron Date: Wed, 12 Apr 2017 16:51:10 -0700 Subject: [PATCH] Parser line-break fix. --- e107_handlers/e_parse_class.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/e107_handlers/e_parse_class.php b/e107_handlers/e_parse_class.php index f86f89ef3..4ba04ac6f 100644 --- a/e107_handlers/e_parse_class.php +++ b/e107_handlers/e_parse_class.php @@ -4116,15 +4116,24 @@ class e_parser function isHtml($text) { - if(strpos($text,'[html]') !== false || (htmlentities($text, ENT_NOQUOTES,'UTF-8') != $text && $this->isBBcode($text) === false ) || preg_match('#(?<=<)\w+(?=[^<]*?>)#', $text)) + if(strpos($text,'[html]')) { return true; } - else + + if($this->isBBcode($text)) { return false; } + if(preg_match('#(?<=<)\w+(?=[^<]*?>)#', $text)) + { + return true; + } + + return false; + + }