3
1
Back

*/ /* replace '//' or '/./' or '/foo/../' with '/' */ for($n=1; $n>0; $abs=preg_replace($re, '/', $abs, -1, $n)) { } /* absolute URL is ready! */ } /* absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Two Lumps // Breaking Cat News elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { //also get blog elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { //also get the blog // XKCD (alt tags we don't need to call out for) $article['content'] = $doc->saveHTML(); function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= "Alt: " . $article['id.

New Pull Request