3
1
Back

$this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] .= "" . $entry->textContent . ""; $img_tag = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); // Least I Could Do (wtf image size? If (preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Invisible Bread, Softer.

New Pull Request