Sha256: 5143c7add7a035b2f18426c88f296529ab005723a1f1e1b84cc06f6db874cff7

Contents?: true

Size: 573 Bytes

Versions: 3

Compression:

Stored size: 573 Bytes

Contents

module Loofah
  module XML # :nodoc:
    #
    #  Subclass of Nokogiri::XML::DocumentFragment.
    #
    #  See Loofah::ScrubBehavior for additional methods.
    #
    class DocumentFragment < Nokogiri::XML::DocumentFragment
      include Loofah::ScrubBehavior::Node

      class << self
        #
        #  Overridden Nokogiri::XML::DocumentFragment
        #  constructor. Applications should use Loofah.fragment to
        #  parse a fragment.
        #
        def parse tags
          self.new(Loofah::XML::Document.new, tags)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
loofah-0.4.4 lib/loofah/xml/document_fragment.rb
loofah-0.4.3 lib/loofah/xml/document_fragment.rb
loofah-0.4.2 lib/loofah/xml/document_fragment.rb