3
1
Back

$new_element->setAttribute('src', $extraimage->getAttribute('src')); $bread->parentNode->replaceChild($new_element, $bread); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } // Timothy Winchester (People I Know) $article['content'] .= "

" . $entry->textContent . "

"; } } foreach($imgs as $img){ // Questionable Content (cleanup elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { if (!$alt_text || $alt_text == $article['title'] || strpos($article['title'], $alt_text) !== false){ .

New Pull Request