Skip to content
Snippets Groups Projects
Commit 96ce71f3 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

atom parser: experimental fix for feeds which do not encode entry content

parent 6f81395d
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,13 @@ class FeedItem_Atom extends FeedItem_Common { ...@@ -41,6 +41,13 @@ class FeedItem_Atom extends FeedItem_Common {
$content = $this->elem->getElementsByTagName("content")->item(0); $content = $this->elem->getElementsByTagName("content")->item(0);
if ($content) { if ($content) {
if ($content->hasChildNodes()) {
if ($content->getElementsByTagName("*")->length > 1) {
return $this->doc->saveXML($content->firstChild->nextSibling);
}
}
return $content->nodeValue; return $content->nodeValue;
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment