3
1
Back

Src and quotes in alt/title text under images (extra useful for non-browser users elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Eat That Toast elseif (strpos($article["link"], "www.pilotside.us/comic/") !== 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 $article['content'] .= "

Bonus comic:
" . $aftercomic . ""; // XKCD (alt tags we don't need to have a specific dirname. To get this: git clone --recurse-submodules.

New Pull Request