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. = 'embed', 'object'
end
193 194 195 |
# File 'actionpack/lib/action_view/helpers/sanitize_helper.rb', line 193 def (attributes) HTML::WhiteListSanitizer..merge(attributes) end |