3
1
Back

Do (wtf image size?) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Questionable Content (cleanup // only keep everything starting at the first // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if (strpos($article["content"], "bonus panel!") !== FALSE) { $article['content'] .= "ID: " . $img->getAttribute('title') . ""; // XKCD (alt tags we don't need to.

New Pull Request