Sha256: a99a811497f9b8f0de9cbcbfedbce22ffd3a5551f496be8467291bf61be5d7c1

Contents?: true

Size: 164 Bytes

Versions: 4

Compression:

Stored size: 164 Bytes

Contents

AutoHtml.add_filter(:sanitize).with({}) do |text, options|
  require 'action_controller'
  require 'cgi'
  HTML::WhiteListSanitizer.new.sanitize(text, options)
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
auto_html-whistlerbrk-2.0.0.pre lib/auto_html/filters/sanitize.rb
auto_html-1.6.4 lib/auto_html/filters/sanitize.rb
auto_html-1.6.3 lib/auto_html/filters/sanitize.rb
auto_html-1.6.2 lib/auto_html/filters/sanitize.rb