3
1
Back

$this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = preg_replace("@@", '', $article['content']); // Penny Arcade elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Doghouse Diaries, which has broken alt tags textified. Elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Chainsawsuit elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // there's both alt and title texts, they're both different, use both. } elseif (strpos($title_text, $alt_text) !== false){ $text_element = $doc->createElement("i", $alt_text.

New Pull Request