collectExpandableDatas(self::URI . 'rssfeed.php'); } protected function parseItem(array $item) { $item['author'] = 'Ryan North'; preg_match('/title="(.*?)"/', $item['content'], $matches); $title = $matches[1] ?? ''; $content = str_get_html(html_entity_decode($item['content'])); $comicURL = $content->find('img')[0]->{'src'}; $subject = $content->find('a')[1]->{'href'}; $subject = urldecode(substr($subject, strpos($subject, 'subject') + 8)); $p = (string)$content->find('P')[0]; $item['content'] = "{$subject}

{$title}

{$p}"; return $item; } public function getIcon() { return self::URI . 'favicon.ico'; } }