From: Andrew Dolgov Date: Thu, 2 May 2013 06:30:41 +0000 (+0400) Subject: feedparser: make content:encoded take precedence over description X-Git-Tag: 1.7.9~25^2~18 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=99b82567944a96afb70ab7af1f0bd344ac3ab95a;p=tt-rss.git feedparser: make content:encoded take precedence over description --- diff --git a/classes/feeditem/rss.php b/classes/feeditem/rss.php index 5b43d0e8..2f363b4f 100644 --- a/classes/feeditem/rss.php +++ b/classes/feeditem/rss.php @@ -35,18 +35,17 @@ class FeedItem_RSS extends FeedItem_Common { } function get_content() { - $content = $this->elem->getElementsByTagName("description")->item(0); + $content = $this->xpath->query("content:encoded", $this->elem)->item(0); if ($content) { return $content->nodeValue; } - $content = $this->xpath->query("content:encoded", $this->elem)->item(0); + $content = $this->elem->getElementsByTagName("description")->item(0); if ($content) { return $content->nodeValue; } - } function get_description() {