class Loofah::XML::DocumentFragment

Subclass of Nokogiri::XML::DocumentFragment.

See Loofah::ScrubBehavior for additional methods.

Public Class Methods

parse(tags) click to toggle source
# File lib/loofah/xml/document_fragment.rb, line 11
def parse(tags)
  doc = Loofah::XML::Document.new
  doc.encoding = tags.encoding.name if tags.respond_to?(:encoding)
  new(doc, tags)
end