Remove HTML tags from Textbox w/o turning off ValidateRequest
Posted on 2006-10-19
I know when a user tries to add HTML like tags in a text box, an error will occur if ValidateRequest is turned off....however there are some security implications when this is turned off....I know how to remove HTML tags using RegEx, but I don't know how to remove the HTML before the validaterequest throws an error.
Any Ideas? I want to just remove the HTML so the text being posted will be valid. Thanks!