3
1
Back

Example // Breaking Cat News $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = preg_replace("@@", '', $article['content']); } // Chainsawsuit elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // Three Panel Soul elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { // Dead Philosophers elseif.

New Pull Request