lib/content_link_parser.rb in cobweb-0.0.74 vs lib/content_link_parser.rb in cobweb-0.0.75

- old
+ new

@@ -11,9 +11,10 @@ @doc = Nokogiri::HTML(content) base_url = @url.to_s if @doc.at("base[href]") base_url = @doc.at("base[href]").attr("href").to_s + @url = base_url if base_url end @options[:tags] = {} @options[:tags][:links] = [["a[href]", "href"], ["frame[src]", "src"], ["meta[@http-equiv=\"refresh\"]", "content"], ["link[href]:not([rel])", "href"], ["area[href]", "href"]] @options[:tags][:images] = [["img[src]", "src"]]