3
1
Back

//doesn't get simpler than this foreach($imgs as $img){ // Questionable Content (cleanup) // Questionable Content (cleanup) // Questionable Content (cleanup) // Questionable Content (cleanup) elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); } // Dilbert elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@width=\"\d+\"@", "", $img); $img = $matches[1]; $img = $matches[1]; } } // Cyanide & Happiness elseif (strpos($article['link'], 'questionablecontent') !== FALSE.

New Pull Request