Method: Typhoeus::Response#html
- Defined in:
- lib/cms_scanner/typhoeus/response.rb
#html ⇒ Nokogiri::XML
Returns The response’s body parsed by Nokogiri::HTML.
7 8 9 |
# File 'lib/cms_scanner/typhoeus/response.rb', line 7 def html @html ||= Nokogiri::HTML(body.encode('UTF-8', invalid: :replace, undef: :replace)) end |