3
1
Back

About $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog //also get the blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { // Alice Grove (get bigger image) elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "

" . $entry->textContent . "

"; } } Invisible Bread, Softer World (alt tags), Dinosaur Comics.

New Pull Request