|
|
@ -187,7 +187,8 @@ class washtml
|
|
|
|
//Charset seems to be ignored (probably if defined in the HTML document)
|
|
|
|
//Charset seems to be ignored (probably if defined in the HTML document)
|
|
|
|
$node = new DOMDocument('1.0', $config['charset']);
|
|
|
|
$node = new DOMDocument('1.0', $config['charset']);
|
|
|
|
$full = true;
|
|
|
|
$full = true;
|
|
|
|
$html = mb_convert_encoding($html, 'HTML-ENTITIES', 'UTF-8');
|
|
|
|
if (function_exists('mb_convert_encoding'))
|
|
|
|
|
|
|
|
$html = mb_convert_encoding($html, 'HTML-ENTITIES', $config['charset']);
|
|
|
|
@$node->loadHTML($html);
|
|
|
|
@$node->loadHTML($html);
|
|
|
|
return self::dumpHtml($node, $config, $full);
|
|
|
|
return self::dumpHtml($node, $config, $full);
|
|
|
|
}
|
|
|
|
}
|
|
|
|