summaryrefslogtreecommitdiff
path: root/program/lib/washtml.php
diff options
context:
space:
mode:
Diffstat (limited to 'program/lib/washtml.php')
-rw-r--r--program/lib/washtml.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/program/lib/washtml.php b/program/lib/washtml.php
index 82ccc0cd5..f45fd458a 100644
--- a/program/lib/washtml.php
+++ b/program/lib/washtml.php
@@ -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);
}