3
1
Back

$this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Scenes From A Multiverse (to get alt tag) // Achewood (alt tag) elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $doc = new DOMXPath($doc); } function rel2abs($rel, $base) { if (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Eat That Toast elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] .= "Bonus comic:" . $aftercomic.

New Pull Request