3
1
Back

$doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Poly In Pictures elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Girls with Slingshots // CTRL+ALT+DEL Sillies // CTRL+ALT+DEL elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $article['content'] .= $aftercomic; $article['content'] .= "

$orig_content

"; //also append the blarg post because.

New Pull Request