Merge pull request #7550 from MrPetovan/bug/7350-feed-title-entities

Replace mb_convert_encoding with html_entity_decode for feed item title conversion
This commit is contained in:
Philipp 2019-08-22 12:44:19 +02:00 committed by GitHub
commit d850c14f42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);