3
1
Back

Are quotes elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Gunnerkrigg Court elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $img = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // Poly In Pictures elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Softer World (alt tags), Dinosaur Comics Cleanup elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && // SatW elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Joy of Tech elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article.

New Pull Request