Method: ActionView::Helpers::SanitizeHelper::ClassMethods#sanitized_bad_tags=

Defined in:
actionpack/lib/action_view/helpers/sanitize_helper.rb

#sanitized_bad_tags=(attributes) ⇒ Object

Adds to the Set of ‘bad’ tags for the sanitize helper.

class Application < Rails::Application
  config.action_view.sanitized_bad_tags = 'embed', 'object'
end

193
194
195
# File 'actionpack/lib/action_view/helpers/sanitize_helper.rb', line 193

def sanitized_bad_tags=(attributes)
  HTML::WhiteListSanitizer.bad_tags.merge(attributes)
end