Sha256: 7d060a21194269fb1ead53c3b87ae5487bff39c807c496ae7c5edb54fe1a30e7
Contents?: true
Size: 625 Bytes
Versions: 56
Compression:
Stored size: 625 Bytes
Contents
module Loofah module XML # :nodoc: # # Subclass of Nokogiri::XML::DocumentFragment. # # See Loofah::ScrubBehavior for additional methods. # class DocumentFragment < Nokogiri::XML::DocumentFragment class << self # # Overridden Nokogiri::XML::DocumentFragment # constructor. Applications should use Loofah.fragment to # parse a fragment. # def parse tags doc = Loofah::XML::Document.new doc.encoding = tags.encoding.name if tags.respond_to?(:encoding) self.new(doc, tags) end end end end end
Version data entries
56 entries across 49 versions & 12 rubygems