Saturday, 15 September 2012

ruby on rails - remove all html tag before validation -


Before verification, there is a clear way to remove all the HTML tags of all the attributes I found_as_sanitized which should be correct, but the rail 2: -s

thanks

cleanliness gem:

Do you need

Call Sanitize.clean (htmlstring) You can also whitelist with approved tags.

No comments:

Post a Comment