Subclass of Nokogiri::XML::DocumentFragment.
See Loofah::ScrubBehavior for additional methods.
Overridden Nokogiri::XML::DocumentFragment constructor. Applications should use Loofah.fragment to parse a fragment.
# File lib/loofah/xml/document_fragment.rb, line 15 def parse tags self.new(Loofah::XML::Document.new, tags) end