3
1
Back

Positive $alt_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("div"); $para_element = $doc->createElement("p"); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Scenes From A Multiverse (to get alt tags if both exist Updated LICD, alter alt-textify to handle both title and alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE.

New Pull Request