Forum: Ruby on Rails Sanitize + form_for

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Petan C. (Guest)
on 2009-01-22 15:34
Hi,

I am trying to sanitize some bad html tags using sanitize
(http://wonko.com/post/sanitize).

I have a basic form:

<% form_for ... do |f| %>
    <%= Sanitize.clean(f.text_field :title,
Sanitize::Config::RESTRICTED) %>
<% end %>

This is incorrect, could anyone help me out.
Thank you.
Petan C. (Guest)
on 2009-01-23 09:17
Anyone pls?
This topic is locked and can not be replied to.