3
1
Back

"//div[@class='comicpage']//img[contains(@src, 'Strip')]", $article); } // Dilbert elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Awkward Zombie elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; if (ADD_IDS) { $new_element->appendChild($para_element); if ($alt_text && !$title_text){ Various updates, additions // PhD Unknown elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); Clean up code formatting; added a few more 'simple'.

New Pull Request