From 9de59d5c4dc3cdf74203b6810edc23c3a774d3b1 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sun, 18 Aug 2019 09:37:31 -0400 Subject: [PATCH] Add entry title HTML entities conversion in Protocol\Feed - Prevents literal entities display in generated post title --- src/Protocol/Feed.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index 0cf1db7cb7..65f2e7b863 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -266,6 +266,9 @@ class Feed { if (empty($item["title"])) { $item["title"] = XML::getFirstNodeValue($xpath, 'rss:title/text()', $entry); } + + $item["title"] = mb_convert_encoding($item["title"], 'HTML-ENTITIES', "UTF-8"); + $published = XML::getFirstNodeValue($xpath, 'atom:published/text()', $entry); if (empty($published)) { -- 2.39.5