3
1
Back

Switch for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text under images (extra useful for non-browser users /* absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } function hook_render_article($article) { try { return $article; } function rel2abs($rel, $base) { Fix for when invisiblebread has no bread elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Girls with Slingshots * Three Panel Soul // Three Panel Soul elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // CTRL+ALT+DEL elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { // Dead Philosophers // Dead Philosophers 2015-02-25 15:05:54 -08:00 // Eat That Toast bog-standard example elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = new DOMXpath($doc); $vgcats_url_node = $url_xpath->query("//a[contains(@href, 'strip_id')]")->item(0); } $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query($query); $result_html = ''; foreach ($entries as $entry){ $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

New Pull Request