alecpl
2008-06-03 68217c548a024f3f7d7d667ce4b825cf61ae46a9
-add convert encoding before html parsing


1 files modified
1 ■■■■ changed files
program/lib/washtml.php 1 ●●●● patch | view | raw | blame | history
program/lib/washtml.php
@@ -187,6 +187,7 @@
    //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);
  }