Labels Milestones
BackThe Oatmeal $entries = $xpath->query($query); $result_html = ''; function rel2abs($rel, $base) { function get_img_tags($xpath, $query, &$article, $base_url=NULL) { function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//div[@id='comic-notes']"); foreach ($entries as $entry){ $article['content'] .= "
" . $entry->ownerDocument->saveXML($entry) . "
"; } } // Chainsawsuit // Chainsawsuit elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // replace the