Module: Nokogiri::HTML

Defined in:
lib/saper/patches/nokogiri.rb

Class Method Summary collapse

Class Method Details

.parse(thing, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block) ⇒ Object


9
10
11
# File 'lib/saper/patches/nokogiri.rb', line 9

def self.parse(thing, url = nil, encoding = nil, options = XML::ParseOptions::DEFAULT_HTML, &block)
  Document.parse(thing.gsub("—", ""), url, encoding, options, &block)
end