From: Hypolite Petovan Date: Thu, 22 Aug 2019 10:00:21 +0000 (-0400) Subject: Replace mb_convert_encoding with html_entity_decode for feed item title conversion X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=20a6b368fbbaea6c163c19794064106e18c4bcb1;p=friendica.git Replace mb_convert_encoding with html_entity_decode for feed item title conversion - Prevents already UTF-8 strings to be corrupted --- 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);