Sanitize add more tags


#1

I have added the following snippet to environment.rb:

Rails::Initializer.run do |config|
config.action_view.sanitized_allowed_tags = ‘table’, ‘tr’, ‘td’, ‘th’
end

But it doesn’t work, my tags still get removed. Any idea why it is
happening?


#2

FIXED: I had to restart the server, even in development mode.


#3

On Oct 18, 5:57 pm, Fernando P. removed_email_address@domain.invalid
wrote:

FIXED: I had to restart the server, even in development mode.

Changes to environment.rb and similar are never picked up without a
restart.

Fred