3
1
Back

(strpos($article["link"], "penny-arcade.com") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // XKCD (alt tags we don't need to call out for) // Dead Philosophers elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // And get blog $entries = $xpath->query("//div[@class='entry']"); if (preg_match("@.*(.*)@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $img = $matches[1]; $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Breaking Cat News elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { From e8295830c4756e41fd19dc7b9fd77b84addfd373.

New Pull Request