3
1
Back

$bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); } elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Something Positive $alt_text = trim($img->getAttribute('title')); $title_text = trim($img->getAttribute('title')); if (!$alt_text) { $new_element = $doc->createElement("img"); $new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Something Positive From 99b8f1493d9f2a363a83835d795293cab3a675c2 Mon Sep 17 00:00:00.

New Pull Request