3
1
Back

@ Thingiverse * This script is licensed under a license different than this foreach($imgs as $img){ $article['content'] .= "
Alt: " . $article['id']; } function get_img_tags($xpath, $query, $article, $base_url=NULL) { $img_attributes_whitelist = array('src', 'alt', 'title'); $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= "
Alt: " . $img->getAttribute('title') . ""; } // $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // The Trenches elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); $article['content'] = $img; } //Sites that provide images and just need alt tags textified. $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } .

New Pull Request