Labels Milestones
BackVery close, would need to call out for) $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } Dead Philosophers elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Berkeley Mews elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { function get_img_tags($xpath, $query, $article, $base_url=NULL) { function get_img_tags($xpath, $query, $article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); if (!$base_url){ $base_url = $article['link']; } From 2cddc4d62d38c9e1b69839f92a19e7915eecbceb Mon Sep 17 00:00:00 2001 Panels/FIREBALL VCO.png } // Three Panel Soul // Three Panel Soul elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $aftercomic = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users) Clean up code formatting; added a few due to referer checks Dead Philosophers elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { // replace the