better solution for HTML washing encoding issue

release-0.6
svncommit 16 years ago
parent a80b7d416c
commit 5f8d31f9be

@ -246,7 +246,6 @@ 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', $this->config['charset']); $node = new DOMDocument('1.0', $this->config['charset']);
$this->extlinks = false; $this->extlinks = false;
$html = mb_convert_encoding($html, 'HTML-ENTITIES', $this->config['charset']);
@$node->loadHTML($html); @$node->loadHTML($html);
return $this->dumpHtml($node); return $this->dumpHtml($node);
} }

Loading…
Cancel
Save