mirror of
https://github.com/friendica/friendica
synced 2024-12-23 13:20:21 +00:00
Merge pull request #7534 from MrPetovan/bug/7350-feed-title-entities
Add entry title HTML entities conversion in Protocol\Feed
This commit is contained in:
commit
1fd1849641
1 changed files with 3 additions and 0 deletions
|
@ -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