lib/html2rss/item_extractors/href.rb in html2rss-0.8.1 vs lib/html2rss/item_extractors/href.rb in html2rss-0.8.2

- old
+ new

@@ -22,15 +22,15 @@ # 'http://blog-without-a-feed.example.com/posts/latest-findings' class Href def initialize(xml, options) @options = options element = ItemExtractors.element(xml, options) - @href = element.attr('href').to_s + @href = Html2rss::Utils.sanitize_url(element.attr('href')) end # @return [URI::HTTPS, URI::HTTP] def get - Html2rss::Utils.build_absolute_url_from_relative(@href, @options['channel']['url']) + Html2rss::Utils.build_absolute_url_from_relative(@href, @options[:channel][:url]) end end end end