Hi all,

I just installed whiteList and sanitize_params plugins to get rid of
with some bad html tags .....

Put in my environment.rb:
config.plugins = [:white_list, :sanitize_params, :all]

and in application.rb:
before_filter :sanitize_params

add ok tags to config/initializers/whitelist_conf.rb
WhiteListHelper.tags += %w(a em p strong blockquote h2 ul li)

but all the tags from the text fields are stripped. Am I missing
something?
THx P.
-- 
Posted via http://www.ruby-forum.com/.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to