3
1
Back

$xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ // Softer World (alt tags we don't need to call out for foreach ($imgs as $img) { if ($doc === NULL) { foreach ($article['debugging'] as $msg) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; } Added BCN, Something Positive if (!$alt_text){ Added BCN, Something Positive elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = $matches[1]; } } } .

New Pull Request