Sha256: 20af83e36252d5625d1f5410e5fd4d017f3ff8bc500dbc1245212bdeb65a26c8

Contents?: true

Size: 236 Bytes

Versions: 14

Compression:

Stored size: 236 Bytes

Contents

# encoding: utf-8

class Sanitize; module Transformers

  CleanComment = lambda do |env|
    node = env[:node]

    if node.type == Nokogiri::XML::Node::COMMENT_NODE
      node.unlink unless env[:is_allowlisted]
    end
  end

end; end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
sanitize-6.1.3 lib/sanitize/transformers/clean_comment.rb
sanitize-6.1.2 lib/sanitize/transformers/clean_comment.rb
sanitize-6.1.1 lib/sanitize/transformers/clean_comment.rb
sanitize-6.1.0 lib/sanitize/transformers/clean_comment.rb
sanitize-6.0.2 lib/sanitize/transformers/clean_comment.rb
mumukit-content-type-1.12.1 vendor/bundle/ruby/2.7.0/gems/sanitize-6.0.1/lib/sanitize/transformers/clean_comment.rb
mumukit-content-type-1.12.0 vendor/bundle/ruby/2.7.0/gems/sanitize-6.0.1/lib/sanitize/transformers/clean_comment.rb
sanitize-6.0.1 lib/sanitize/transformers/clean_comment.rb
mumukit-content-type-1.11.1 vendor/bundle/ruby/2.6.0/gems/sanitize-6.0.0/lib/sanitize/transformers/clean_comment.rb
sanitize-6.0.0 lib/sanitize/transformers/clean_comment.rb
sanitize-5.2.3 lib/sanitize/transformers/clean_comment.rb
sanitize-5.2.2 lib/sanitize/transformers/clean_comment.rb
sanitize-5.2.1 lib/sanitize/transformers/clean_comment.rb
sanitize-5.2.0 lib/sanitize/transformers/clean_comment.rb