lib/converters/nokogiri.rb in convert-0.1.3 vs lib/converters/nokogiri.rb in convert-0.1.4

- old
+ new

@@ -3,10 +3,10 @@ SKIP = ['a', 'pre', 'code', 'kbd', 'script', 'iframe', 'img', 'link'] # Scan a string with Nokogiri and convert if match string def scan(string, options = {}) - return string if options[:converters].empty? + return string if !options[:converters] or options[:converters].empty? doc = Nokogiri::HTML.fragment(string) doc.search('.//text()').each do |el| t = el.text