mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 18:15:56 +00:00
fix rss content:encoded not used
This commit is contained in:
@@ -40,6 +40,13 @@ class FeedItem_RSS extends FeedItem_Common {
|
|||||||
if ($content) {
|
if ($content) {
|
||||||
return $content->nodeValue;
|
return $content->nodeValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$content = $this->xpath->query("content:encoded", $this->elem)->item(0);
|
||||||
|
|
||||||
|
if ($content) {
|
||||||
|
return $content->nodeValue;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function get_description() {
|
function get_description() {
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ class FeedParser {
|
|||||||
$xpath->registerNamespace('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');
|
$xpath->registerNamespace('rdf', 'http://www.w3.org/1999/02/22-rdf-syntax-ns#');
|
||||||
$xpath->registerNamespace('slash', 'http://purl.org/rss/1.0/modules/slash/');
|
$xpath->registerNamespace('slash', 'http://purl.org/rss/1.0/modules/slash/');
|
||||||
$xpath->registerNamespace('dc', 'http://purl.org/dc/elements/1.1/');
|
$xpath->registerNamespace('dc', 'http://purl.org/dc/elements/1.1/');
|
||||||
|
$xpath->registerNamespace('content', 'http://purl.org/rss/1.0/modules/content/');
|
||||||
|
|
||||||
$this->xpath = $xpath;
|
$this->xpath = $xpath;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user