3
1
Back

= preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Cyanide & Happiness elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // And get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "" . $entry->textContent . ""; $img_tag = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Assorted updates elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Scenes From A Multiverse (to get alt tags) } // Questionable Content (cleanup elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath .

New Pull Request