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'] .= "Bonus comic:" . $aftercomic . "

"; } } //noop } // Two Lumps elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // slightly complicated; the link.

New Pull Request