]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #7534 from MrPetovan/bug/7350-feed-title-entities
authorPhilipp <admin+Github@philipp.info>
Sun, 18 Aug 2019 13:59:58 +0000 (15:59 +0200)
committerGitHub <noreply@github.com>
Sun, 18 Aug 2019 13:59:58 +0000 (15:59 +0200)
Add entry title HTML entities conversion in Protocol\Feed

src/Protocol/Feed.php

index 0cf1db7cb799dcafe5789157953c3767f4fe265e..65f2e7b863715ce06c5582e9dca41a74481167c7 100644 (file)
@@ -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)) {