3
1
Back

Written for about a dozen webcomics. Examples: * Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ function get_img_tags($xpath, $query, &$article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= $entry->ownerDocument->saveXML($entry); if (GDORN_DEBUG && $article['debugging']) { foreach ($article['debugging'] as $msg) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this // only keep everything starting at the first break, the start a cycle of MS1->MS2->MS3->MS4->MS1, moving on after each break. We haven't done MS5 in a separate file.

New Pull Request