1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 07:36:32 +02:00

Removed unnecessary conversion from within cleanHtml()

This commit is contained in:
Cameron
2015-04-11 16:56:46 -07:00
parent dc30d01929
commit f358cdf856

View File

@@ -3424,12 +3424,7 @@ return;
{
if(empty($html)){ return ''; }
$html = mb_convert_encoding($html, 'UTF-8');
// $html = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8');
$html = str_replace (' ', '@nbsp;', $html); // prevent replacement of   with spaces.
$html = str_replace(' ', '@nbsp;', $html); // prevent replacement of   with spaces.
if(preg_match("/<body/i",$html)!==true) // HTML Fragment
{