Numerama: add lists to output
This commit is contained in:
parent
b80764282a
commit
136be273ce
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue