3
1
Back

$doc->loadHTML($html); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { if ($img->getAttribute('title')) { $article['content'] .= "

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

"; } } // Gunnerkrigg Court elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); // Questionable Content (cleanup) // Questionable Content (cleanup) elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this // for cylinder indentations, set.

New Pull Request