]> git.wh0rd.org - tt-rss.git/blobdiff - plugins/af_redditimgur/init.php
tweet embed: force utf-8
[tt-rss.git] / plugins / af_redditimgur / init.php
index e43846abfec11b672dbe080fbc32008d6f2e467d..7ab07b9003b372ac623129ddc1cff88188dd21d9 100755 (executable)
@@ -106,7 +106,7 @@ class Af_RedditImgur extends Plugin {
                                                if ($oembed_result && isset($oembed_result["html"])) {
 
                                                        $tmp = new DOMDocument();
-                                                       if ($tmp->loadHTML($oembed_result["html"])) {
+                                                       if ($tmp->loadHTML('<?xml encoding="utf-8" ?>' . $oembed_result["html"])) {
                                                                $p = $doc->createElement("p");
 
                                                                $p->appendChild($doc->importNode(