Forum: Ruby on Rails Sanitize + form_for

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

I am trying to sanitize some bad html tags using 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.