Alexandre Alapetite authored and GitHub committed 2024-05-02 19:49:18 +02:00
1 parent 0e6f56bb4c
commit 44625eed25
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -1148,6 +1148,7 @@ class FreshRSS_feed_Controller extends FreshRSS_ActionController {
return;
}
$feed->_pathEntries($content_selector);
$feed->_attribute('path_entries_filter', Minz_Request::paramString('selector_filter', true));
//Fetch & select content.
try {
+2 -1
View File
@@ -748,7 +748,8 @@ HTML;
}
$content = '';
$nodes = $xpath->query((new Gt\CssXPath\Translator($feed->pathEntries()))->asXPath());
$cssSelector = htmlspecialchars_decode($feed->pathEntries(), ENT_QUOTES);
$nodes = $xpath->query((new Gt\CssXPath\Translator($cssSelector))->asXPath());
if ($nodes != false) {
$path_entries_filter = $feed->attributeString('path_entries_filter');
foreach ($nodes as $node) {