]> git.wh0rd.org Git - tt-rss.git/commitdiff
tweet embed: force utf-8
authorAndrew Dolgov <noreply@fakecake.org>
Tue, 2 Aug 2016 15:08:00 +0000 (18:08 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Tue, 2 Aug 2016 15:08:00 +0000 (18:08 +0300)
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(