Fix CoinDeskBridge

This commit is contained in:
Teromene 2016-08-02 14:11:28 +02:00
parent 099a421d8b
commit ea4586d8b3

View file

@ -19,11 +19,13 @@ class CoinDeskBridge extends BridgeAbstract{
return $string;
}
function CoinDeskExtractContent($url) {
$html2 = $this->file_get_html($url);
//FIXME: We need to change the $this->file_get_html to a static
$html2 = file_get_html($url);
$text = $html2->find('div.single-content', 0)->innertext;
$text = strip_tags($text, '<p><a><img>');
return $text;
}
$html = $this->file_get_html('http://www.coindesk.com/feed/atom/') or $this->returnError('Could not request CoinDesk.', 404);
$limit = 0;