Add entry title HTML entities conversion in Protocol\Feed

- Prevents literal entities display in generated post title
This commit is contained in:
Hypolite Petovan 2019-08-18 09:37:31 -04:00
parent 0f32ab10d8
commit 9de59d5c4d

View 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)) {