3
1
Back

$fetch_last_content_type; $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type ); } 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: $alt_text
"; list($html, $content_type) = $this->get_content($link); $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // Poorly Drawn Lines elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { //also get blog entry $entries = $xpath->query("//span[@class='rss-content']"); // Wondermark (alt tag already present) // Wondermark (alt tag elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE.

New Pull Request