From: Hypolite Petovan Date: Sun, 18 Aug 2019 13:37:31 +0000 (-0400) Subject: Add entry title HTML entities conversion in Protocol\Feed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9de59d5c4dc3cdf74203b6810edc23c3a774d3b1;p=friendica.git Add entry title HTML entities conversion in Protocol\Feed - Prevents literal entities display in generated post title --- 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)) {