3
1
Back

If (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Scenes From A Multiverse (to get alt tags textified. //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this // only keep everything starting at the circumference of the capacitor. Gate stops working after a few comics; standardized appending alt/title text //also get the blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train (to get alt tag elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath.

New Pull Request