Sanitize HTML to prevent XSS and page malformatting attacks
Submitted by admin on Thu, 10/12/2006 - 00:00The credit for this ruby procedure must be given to Dwight Shih & Brad Choate.
The usefulness of this type of an action cannot be overemphasized. You can essentially use it to define the specific tags that you want to insure are not malformed and abused maliciously. Feel free to test it and share any suggestions.