3
1
Back

"//div[@id='content']/img", $article); } // Dilbert elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $doc = new DOMDocument(); // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } // Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content.

New Pull Request