Remove All Html Tag Before Validation
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
Solution 1:
The sanitize gem:
https://github.com/rgrove/sanitize
Does what you need.
Call Sanitize.clean(htmlstring). You can whitelist allowed tags as well.
Post a Comment for "Remove All Html Tag Before Validation"