Labels Milestones
BackNot change this if you don't need to call out for elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // PhD Unknown // Robot Hugs $entries = $xpath->query($query); $result_html = ''; foreach ($entries as $entry){ $article['content'] .= "
" . $entry->ownerDocument->saveXML($entry) . "
"; elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users $entries = $xpath->query($query); $result_html. New Pull Request