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"])) {
|
if (empty($item["title"])) {
|
||||||
$item["title"] = XML::getFirstNodeValue($xpath, 'rss:title/text()', $entry);
|
$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);
|
$published = XML::getFirstNodeValue($xpath, 'atom:published/text()', $entry);
|
||||||
|
|
||||||
if (empty($published)) {
|
if (empty($published)) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user