From 20a6b368fbbaea6c163c19794064106e18c4bcb1 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 22 Aug 2019 06:00:21 -0400 Subject: [PATCH] Replace mb_convert_encoding with html_entity_decode for feed item title conversion - Prevents already UTF-8 strings to be corrupted --- src/Protocol/Feed.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/Feed.php b/src/Protocol/Feed.php index 65f2e7b863..c678cf0ae8 100644 --- a/src/Protocol/Feed.php +++ b/src/Protocol/Feed.php @@ -267,7 +267,7 @@ class Feed { $item["title"] = XML::getFirstNodeValue($xpath, 'rss:title/text()', $entry); } - $item["title"] = mb_convert_encoding($item["title"], 'HTML-ENTITIES', "UTF-8"); + $item["title"] = html_entity_decode($item["title"], ENT_QUOTES, 'UTF-8'); $published = XML::getFirstNodeValue($xpath, 'atom:published/text()', $entry); -- 2.39.5