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 = 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; } }