Add entry title HTML entities conversion in Protocol\Feed
- Prevents literal entities display in generated post title
This commit is contained in:
parent
0f32ab10d8
commit
9de59d5c4d
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue