summaryrefslogtreecommitdiff
path: root/roundcubemail/program
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-03 17:07:53 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-06-03 17:07:53 +0000
commit49a346880434437844204755be6daff60b1a501a (patch)
tree871a24d454e08ecc69b86d4cb92fad0c23b9630a /roundcubemail/program
parentdd1a4dda1804d991c4ad280fbeba4825d777b1e3 (diff)
-add convert encoding before html parsing
git-svn-id: https://svn.roundcube.net/trunk@1467 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program')
-rw-r--r--roundcubemail/program/lib/washtml.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/roundcubemail/program/lib/washtml.php b/roundcubemail/program/lib/washtml.php
index 82ccc0cd5..f45fd458a 100644
--- a/roundcubemail/program/lib/washtml.php
+++ b/roundcubemail/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);
}