mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 17:56:34 +00:00
feedparser: make content:encoded take precedence over description
This commit is contained in:
@@ -35,18 +35,17 @@ class FeedItem_RSS extends FeedItem_Common {
|
||||
}
|
||||
|
||||
function get_content() {
|
||||
$content = $this->elem->getElementsByTagName("description")->item(0);
|
||||
|
||||
if ($content) {
|
||||
return $content->nodeValue;
|
||||
}
|
||||
|
||||
$content = $this->xpath->query("content:encoded", $this->elem)->item(0);
|
||||
|
||||
if ($content) {
|
||||
return $content->nodeValue;
|
||||
}
|
||||
|
||||
$content = $this->elem->getElementsByTagName("description")->item(0);
|
||||
|
||||
if ($content) {
|
||||
return $content->nodeValue;
|
||||
}
|
||||
}
|
||||
|
||||
function get_description() {
|
||||
|
||||
Reference in New Issue
Block a user