3
1
Back

For if(preg_match("@.*()@", $article['content'], $matches)){ $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = preg_replace("@@", '', $article['content']); // Joy of Tech elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); list($html, $content_type) = $this->get_content($link); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Regarding the board mounted potentiometers, there are quotes) elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = new DOMDocument(); elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // And get blog entry $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { $img = $matches[1]; } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users 1e6cc98f41 Various updates, additions Various updates, additions /* dirty absolute URL .

New Pull Request