3
1
Back

= preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { // Girls with Slingshots // Girls with Slingshots elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { // Robot Hugs $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Least I Could Do (wtf image size?) // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Clean up code formatting; added a.

New Pull Request