I'm having asp.Net barf at me when I submit the a form with a value like <a_
(underscore is a space). This is bad - at the very least I want to be able to gracefully handle the error, ideally I'd like the user to be able to submit anything they like and have it work as the user expects.
- I could set
validateRequest="false"
in the web.config, but I don't want to because I don't understand the security implications. - This article suggested using JavaScript to escape html, and then re-forming the html server side, however I also wasn't sure what the security implications of that was - is this not just the same as setting
validateRequest="false"
for that control?