Sha256: 4764acb2b67ffd09f85440a45aba76b2cf15ecb38b27e44688c37ff8a796e1c3

Contents?: true

Size: 238 Bytes

Versions: 8

Compression:

Stored size: 238 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_whitelisted]
    end
  end

end; end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sanitize-3.1.2 lib/sanitize/transformers/clean_comment.rb
sanitize-3.1.1 lib/sanitize/transformers/clean_comment.rb
sanitize-3.1.0 lib/sanitize/transformers/clean_comment.rb
sanitize-3.0.4 lib/sanitize/transformers/clean_comment.rb
sanitize-3.0.3 lib/sanitize/transformers/clean_comment.rb
sanitize-3.0.2 lib/sanitize/transformers/clean_comment.rb
sanitize-3.0.1 lib/sanitize/transformers/clean_comment.rb
sanitize-3.0.0 lib/sanitize/transformers/clean_comment.rb