3
1
Back

Text under images (extra useful for non-browser users if (preg_match("@.*(textContent . "

"; $article['content'] .= "
Alt: " . $article['id']; } return $article; } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { $article['content'] = $img; } } // Joy of Tech elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); // $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } .

New Pull Request