3
1
Back

$this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // Eat That Toast bog-standard example // Breaking Cat News elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // h[p] function hp_mm(h) .

New Pull Request