forked from blallo/rss-bridge
commit
b3a3328600
1 changed files with 9 additions and 7 deletions
|
@ -19,11 +19,13 @@ class CoinDeskBridge extends BridgeAbstract{
|
||||||
return $string;
|
return $string;
|
||||||
}
|
}
|
||||||
function CoinDeskExtractContent($url) {
|
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 = $html2->find('div.single-content', 0)->innertext;
|
||||||
$text = strip_tags($text, '<p><a><img>');
|
$text = strip_tags($text, '<p><a><img>');
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
|
|
||||||
$html = $this->file_get_html('http://www.coindesk.com/feed/atom/') or $this->returnError('Could not request CoinDesk.', 404);
|
$html = $this->file_get_html('http://www.coindesk.com/feed/atom/') or $this->returnError('Could not request CoinDesk.', 404);
|
||||||
$limit = 0;
|
$limit = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue