3
1
Back

$orig_content = strip_tags($article['content']); $article['content'] = $img_tag . $article['content']; } // XKCD (alt tags we don't need to call out for) $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $img_tag . $article['content']; } // Invisible Bread (make the bread visible) elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Wondermark (alt tag already present elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); .

New Pull Request