Sha256: b06083de96b730d271af09a7223394c1ba3bb62cd7367c51045b5a8ed6dd5981

Contents?: true

Size: 373 Bytes

Versions: 5

Compression:

Stored size: 373 Bytes

Contents

module Loofah
  module HTML
    #
    #  Subclass of Nokogiri::HTML::Document.
    #
    #  See Loofah::ScrubberInstanceMethods for additional methods.
    #
    class Document < Nokogiri::HTML::Document
      include Loofah::ScrubberInstanceMethods

      private

      def __sanitize_roots # :nodoc:
        xpath("/html/head","/html/body")
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
loofah-0.3.1 lib/loofah/html/document.rb
loofah-0.3.0 lib/loofah/html/document.rb
loofah-0.2.2 lib/loofah/html/document.rb
loofah-0.2.1 lib/loofah/html/document.rb
loofah-0.2.0 lib/loofah/html/document.rb