mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 21:25:55 +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() {
|
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);
|
$content = $this->xpath->query("content:encoded", $this->elem)->item(0);
|
||||||
|
|
||||||
if ($content) {
|
if ($content) {
|
||||||
return $content->nodeValue;
|
return $content->nodeValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$content = $this->elem->getElementsByTagName("description")->item(0);
|
||||||
|
|
||||||
|
if ($content) {
|
||||||
|
return $content->nodeValue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_description() {
|
function get_description() {
|
||||||
|
|||||||
Reference in New Issue
Block a user