3
1
Back

{ $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; // Wondermark (alt tag already present elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // only keep everything starting at the first if(preg_match("@.*(get_img_tags($xpath, "//div[@id='comicbody']//img", $article); elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // Pain Train (to get alt tags foreach($imgs as $img){ $article['content'] .= "

" . $entry->textContent . "

"; } } //Sites that provide images and.

New Pull Request