forked from blallo/rss-bridge
Add the funny text that completes the title
This commit is contained in:
parent
ee45f0a829
commit
94a6b42a2b
1 changed files with 4 additions and 3 deletions
|
@ -20,7 +20,8 @@ class NextInpactBridge extends BridgeAbstract{
|
|||
}
|
||||
function ExtractContent($url) {
|
||||
$html2 = file_get_html($url);
|
||||
$text = $html2->find('div[itemprop=articleBody]', 0)->innertext;
|
||||
$text = '<h2>'.$html2->find('div#actu_entete > h2', 0)->innertext.'</h2><br><br>';
|
||||
$text = $text.$html2->find('div[itemprop=articleBody]', 0)->innertext;
|
||||
return $text;
|
||||
}
|
||||
$html = file_get_html('http://www.nextinpact.com/rss/news.xml') or $this->returnError('Could not request Nextinpact.', 404);
|
||||
|
|
Loading…
Reference in a new issue