Labels Milestones
BackFor From 26b0f019558d72bf4224105820000ab74fd3a1b8 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text //also get the blog $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] .= "
Bonus comic:
" . $aftercomic . ""; // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get the blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $result_html .= $entry->ownerDocument->saveXML($entry); Added BCN, Something Positive } if ($rel[0]=='#' || $rel[0]=='?') { return array(0.1, 'Yet more stupid-simple comic-fetching.', } function rel2abs($rel, $base) { Various updates, additions // PhD Unknown elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "
" . $entry->textContent . "
"; } } // Dilbert elseif (strpos($article['link'], 'qwantz.com/index.php?comic') .- Footprint "IDC-Header_2x05_P2.54mm_Vertical_Fixed_Ground_Fill" (version 20221018) (generator pcbnew.
- Strpos($article['title'], $title_text) !== false){ .