3
1
Back

= $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // Doghouse Diaries, which has broken alt tags if (preg_match("@.*()@", $article['content'], $matches)) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Dilbert elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Dilbert elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { Clean up code formatting; added a few due to referer checks elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath.

New Pull Request