Sha256: cd060f5af7758a4243dba23a848b3d1703a6321cfc21758067ce46f9344c5002

Contents?: true

Size: 251 Bytes

Versions: 37

Compression:

Stored size: 251 Bytes

Contents

module Typhoeus
  # Custom Response class
  class Response
    # @return [ Nokogiri::HTML ] The response's body parsed by Nokogiri
    def html
      @html ||= Nokogiri::HTML(body.encode('UTF-8', invalid: :replace, undef: :replace))
    end
  end
end

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
cms_scanner-0.0.39.4 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.39.3 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.39.2 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.39.1 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.39.0 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.38.4 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.38.3 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.38.2 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.38.1 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.38.0 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.37.12 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.37.11 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.37.10 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.37.9 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.37.8 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.37.7 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.37.6 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.37.5 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.37.4 lib/cms_scanner/typhoeus/response.rb
cms_scanner-0.0.37.3 lib/cms_scanner/typhoeus/response.rb