Labels Milestones
Back"//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } function rel2abs($rel, $base) { if ($img->getAttribute('title')) { $article['content'] .= "
Alt: $alt_text"; list($html, $content_type) = $this->get_content($link); $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Jesus & Mo elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); Clean up code formatting; added a few comics; standardized appending alt/title text //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); .