mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-18 22:31:42 +02:00
various fixes (#3190)
* fix: Call to a member function parent() on null * fix: notice fixes Trying to get property plaintext of non-object at bridges/WikiLeaksBridge.php line 96 * fix: CommonDreamsBridge
This commit is contained in:
@@ -21,10 +21,11 @@ class CommonDreamsBridge extends FeedExpander
|
||||
|
||||
private function extractContent($url)
|
||||
{
|
||||
$html3 = getSimpleHTMLDOMCached($url);
|
||||
$text = $html3->find('div[class=field--type-text-with-summary]', 0)->innertext;
|
||||
$html3->clear();
|
||||
unset($html3);
|
||||
$dom = getSimpleHTMLDOMCached($url);
|
||||
$summary = $dom->find('div.node__body', 0);
|
||||
$text = $summary->innertext;
|
||||
$dom->clear();
|
||||
unset($dom);
|
||||
return $text;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user