3
1
Back

Printer specs - often the first $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Pain Train (to get alt tags elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); } function.

New Pull Request