collectExpandableDatas($url, $max); } protected function parseItem(array $item) { $itemUrl = trim($item['uri']); if (!$itemUrl) { return $item; } // todo: remove querystring tracking $dom = getSimpleHTMLDOM($itemUrl); // figure contain's the main article image $article = $dom->find('figure', 0); // .article-text has the actual article foreach ($dom->find('.article-text') as $element) { $article = $article . $element; } $item['content'] = $article ?? ''; return $item; } }