collectExpandableDatas(self::URI . 'derniere-minute/rss', 10); } protected function parseItem($newsItem) { $item = parent::parseItem($newsItem); $item['content'] = $this->extractContent($item['uri']); return $item; } private function extractContent($url) { $html = getSimpleHTMLDOMCached($url); if (!$html) { return 'Could not acquire content from url: ' . $url . '!'; } $content = $html->find('article', 0); if (!$content) { return 'Could not find \'section\'!'; } $text = preg_replace('#(.*?)#is', '', $content->innertext); $text = strip_tags($text, '

'); return $text; } }