3
1
Back

$xpath->query($query); $result_html = ''; function rel2abs($rel, $base) { if (strpos($article["content"], "bonus panel!") !== FALSE) { //noop elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { // replace the

(containing project wonderful) with nothing $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // SatW elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get the blog $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'somethingpositive.net') .

New Pull Request