3
1
Back

($doc === NULL) { foreach ($imgs as $img) { $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; Invisible Bread, Softer World (alt tags we don't need to call out for) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $article['content'] .= "
Alt: " . $article['id']; } return $result_html; } function hook_render_article($article) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Invisible Bread (make the bread visible) // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { //also get the.

New Pull Request