mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-08-06 22:27:42 +02:00
atom parser: experimental fix for feeds which do not encode entry content
This commit is contained in:
parent
6f81395d73
commit
96ce71f35f
@ -41,6 +41,13 @@ class FeedItem_Atom extends FeedItem_Common {
|
||||
$content = $this->elem->getElementsByTagName("content")->item(0);
|
||||
|
||||
if ($content) {
|
||||
if ($content->hasChildNodes()) {
|
||||
|
||||
if ($content->getElementsByTagName("*")->length > 1) {
|
||||
return $this->doc->saveXML($content->firstChild->nextSibling);
|
||||
}
|
||||
}
|
||||
|
||||
return $content->nodeValue;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user