OSDN Git Service

BugTrack/2443 showrss plugin: Enable to show Japanese RSS feeds
authorumorigu <umorigu@gmail.com>
Sat, 21 Oct 2017 02:12:26 +0000 (11:12 +0900)
committerumorigu <umorigu@gmail.com>
Sat, 21 Oct 2017 02:12:26 +0000 (11:12 +0900)
plugin/showrss.inc.php

index 9968214..c32cd0a 100644 (file)
@@ -272,7 +272,7 @@ class ShowRSS_XML
                // Unescape already-escaped chars (&lt;, &gt;, &amp;, ...) in RSS body before htmlsc()
                $str = strtr($str, array_flip(get_html_translation_table(ENT_COMPAT)));
                // Escape
-               $str = htmlsc($str);
+               $str = htmlsc($str, ENT_COMPAT, $this->encoding);
                // Encoding conversion
                $str = mb_convert_encoding($str, SOURCE_ENCODING, $this->encoding);
                return trim($str);