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