Nokogiri::HTML::DocumentFragment
Subclass of Nokogiri::HTML::DocumentFragment.
See Loofah::ScrubBehavior and Loofah::TextBehavior for additional methods.
Overridden Nokogiri::HTML::DocumentFragment constructor. Applications should use Loofah.fragment to parse a fragment.
# File lib/loofah/html/document_fragment.rb, line 17 def parse tags, encoding = nil doc = Loofah::HTML::Document.new encoding ||= tags.respond_to?(:encoding) ? tags.encoding.name : 'UTF-8' doc.encoding = encoding new(doc, tags) end
Generated with the Darkfish Rdoc Generator 2.