3
1
Back

On Moritz Klein's work, but with an alt or title tag. Function alt_textify($article, $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } Various updates, additions /* dirty absolute URL */ $abs = "$host$path/$rel"; function rel2abs($rel, $base $path = preg_replace('#/[^/]*$#', '', $path); /* replace '//' or '/./' or.

New Pull Request