diff options
-rwxr-xr-x | init.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -204,7 +204,7 @@ class Af_Readability extends Plugin { if ($tmp && mb_strlen($tmp) < 1024 * 500) { $tmpdoc = new DOMDocument("1.0", "UTF-8"); - if (!@$tmpdoc->loadHTML($tmp)) + if (!@$tmpdoc->loadHTML('<?xml encoding="UTF-8">' . $tmp)) return false; // this is the worst hack yet :( |