Remove all html tag before validation

hi,
is there a clean way to remove all html tag of all attributes before
validation
I found acts_as_sanitized that seemed to be perfect, but for rails 2 :-s

thanks

On Mar 26, 2013, at 9:45 PM, oto iashvili wrote:

hi,
is there a clean way to remove all html tag of all attributes before validation
I found acts_as_sanitized that seemed to be perfect, but for rails 2 :-s

Have a look at flavorjones/loofah on Github. It includes a sanitize
helper that should do exactly what you need.

Walter