-add convert encoding before html parsing

release-0.6
alecpl 17 years ago
parent 02548b976c
commit 68217c548a

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

Loading…
Cancel
Save