1
1
Fork 0

Replace mb_convert_encoding with html_entity_decode for feed item title conversion

- Prevents already UTF-8 strings to be corrupted
This commit is contained in:
Hypolite Petovan 2019-08-22 06:00:21 -04:00
parent 5a9607f4e4
commit 20a6b368fb

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