collectExpandableDatas(self::URI . 'rss/news.xml', 10); } protected function parseItem($newsItem){ $item = parent::parseItem($newsItem); $item['content'] = $this->ExtractContent($item['uri']); return $item; } private function ExtractContent($url) { $html2 = $this->getSimpleHTMLDOMCached($url); $text = '

'.$html2->find('span.sub_title', 0)->innertext.'

' .'

-

' .'
'.$html2->find('div[itemprop=articleBody]', 0)->innertext.'
'; $premium_article = $html2->find('h2.title_reserve_article', 0); if (is_object($premium_article)) $text = $text.'

'.$premium_article->innertext.'

'; return $text; } }