mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Parser line-break fix.
This commit is contained in:
@@ -4116,15 +4116,24 @@ class e_parser
|
|||||||
function isHtml($text)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
|
if($this->isBBcode($text))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(preg_match('#(?<=<)\w+(?=[^<]*?>)#', $text))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user