3
1
Back

"//div[@class='img-comic-container']//img", $article); // Dinosaur Comics Cleanup $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { // Softer World (alt tags we don't need to call out for) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Least I.

New Pull Request