Sha256: e62965196be4c5498fada9e1b7ea81bd32aa6df406cb3de683b1b5045c955ccc
Contents?: true
Size: 328 Bytes
Versions: 11
Compression:
Stored size: 328 Bytes
Contents
# encoding: utf-8 class Sanitize; module Transformers CleanDoctype = lambda do |env| return if env[:is_allowlisted] node = env[:node] if node.type == Nokogiri::XML::Node::DTD_NODE if env[:config][:allow_doctype] node.name = 'html' else node.unlink end end end end; end
Version data entries
11 entries across 11 versions & 2 rubygems