From 659672ebf9472893629235541d131e20be789008 Mon Sep 17 00:00:00 2001 From: svncommit Date: Thu, 30 Jul 2009 04:07:26 +0000 Subject: fix washing of HTML encoded in something other than UTF-8 --- program/lib/washtml.php | 1 + 1 file changed, 1 insertion(+) (limited to 'program/lib/washtml.php') diff --git a/program/lib/washtml.php b/program/lib/washtml.php index efd525df3..57145a179 100644 --- a/program/lib/washtml.php +++ b/program/lib/washtml.php @@ -246,6 +246,7 @@ class washtml //Charset seems to be ignored (probably if defined in the HTML document) $node = new DOMDocument('1.0', $this->config['charset']); $this->extlinks = false; + $html = mb_convert_encoding($html, 'HTML-ENTITIES', $this->config['charset']); @$node->loadHTML($html); return $this->dumpHtml($node); } -- cgit v1.2.3