3
1
Back

Which has broken alt tags textified. $doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "

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

"; } } } // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Cyanide & Happiness elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "

" . $entry->textContent . "

"; } } } // Poly In Pictures elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath .

New Pull Request