Sha256: 08caf84b0fb60cb68fdcc66ee2638248c3db74986d9e24cc59141ceaeada5837

Contents?: true

Size: 160 Bytes

Versions: 25

Compression:

Stored size: 160 Bytes

Contents

require 'action_controller'
require 'cgi'

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

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
auto_html-1.3.2 lib/auto_html/filters/sanitize.rb
auto_html-1.3.1 lib/auto_html/filters/sanitize.rb
auto_html-1.3.0 lib/auto_html/filters/sanitize.rb
auto_html-1.2.1 lib/auto_html/filters/sanitize.rb
auto_html-1.2.0 lib/auto_html/filters/sanitize.rb