Also use the <span> tag to determine whether an editor was used

This commit is contained in:
Kijin Sung 2017-06-29 18:53:46 +09:00
parent 3c772bf1cf
commit 2a023f0854
2 changed files with 7 additions and 1 deletions

View file

@ -616,7 +616,11 @@ function is_html_content($str)
{
return true;
}
$span_tag_count = preg_match_all('!<span\s+style="[^"<>]*?">.+?</span>!i', $str);
if ($span_tag_count >= 1)
{
return true;
}
return false;
}