3
1
Back

$e->getMessage(); function mangle_article($article) { if ($rel[0] == '#' || $rel[0] == '?') { return $rel; } if (ADD_IDS) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Various updates, additions Updated LICD, alter alt-textify to handle both title and alt tags textified. //Sites that provide images and just need alt tags textified. $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; // only keep everything starting at the first if(preg_match("@.*(get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $doc->saveXML(); } // Girls with Slingshots // Girls with Slingshots elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get what game it's about $orig_content = strip_tags($article['content']); $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*(

New Pull Request