mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-29 04:40:19 +02:00
Numerama: add lists to output
This commit is contained in:
@@ -22,7 +22,7 @@ class NumeramaBridge extends BridgeAbstract{
|
|||||||
$html2 = file_get_html($url);
|
$html2 = file_get_html($url);
|
||||||
$text = $html2->find('h2.intro', 0)->innertext;
|
$text = $html2->find('h2.intro', 0)->innertext;
|
||||||
$text = $text.$html2->find('div.content', 0)->innertext;
|
$text = $text.$html2->find('div.content', 0)->innertext;
|
||||||
$text = strip_tags($text, '<p><b><a><blockquote><img><em>');
|
$text = strip_tags($text, '<p><b><a><blockquote><img><em><ul><ol>');
|
||||||
return $text;
|
return $text;
|
||||||
}
|
}
|
||||||
$html = file_get_html('http://www.numerama.com/rss/news.rss') or $this->returnError('Could not request Numerama.', 404);
|
$html = file_get_html('http://www.numerama.com/rss/news.rss') or $this->returnError('Could not request Numerama.', 404);
|
||||||
|
Reference in New Issue
Block a user