3
1
Back

$this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); } // SatW elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // PhD Unknown elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (preg_match("@.*(get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); .

New Pull Request