Labels Milestones
Back$this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = new DOMXPath($doc); return $xpath; } function hook_render_article($article) { try { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL */ /* replace '//' or '/./' or '/foo/../' with '/' */ $re = array('#(/\.?/)#', '#/(?!\.\.)[^/]+/\.\./#'); for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) {} /* absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(