Numerama: add lists to output

This commit is contained in:
Mitsukarenai 2014-07-16 18:06:15 +02:00
parent b80764282a
commit 136be273ce

View file

@ -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);