title: How to avoid HttpRequestValidationException in ASP.NET MVC rendering the same view which caused the exception
body: <p>I just want to know how to validate (or clean) user input in ASP.NET MVC so that an HttpRequestValidationException will not be thrown regardless of the values submitted.   For example, with a text input, if the user inputs <code>&lt;BR/&gt;</code>, it will cause an exception and the Yellow Screen of Death will be shown. I don't want that. I want to catch the exception and to make visible an user friendly error in the current view, preferably with the controls loaded with the same values submitted. </p>
  
  <p>I have found this <a href="http://www.romsteady.net/blog/2007/06/how-to-catch-httprequestvalidationexcep.html" rel="noreferrer">http://www.romsteady.net/blog/2007/06/how-to-catch-httprequestvalidationexcep.html</a>, but it is useless for my purpose. Also, I have found this <a href="http://msdn.microsoft.com/en-us/library/aa973813.aspx" rel="noreferrer">http://msdn.microsoft.com/en-us/library/aa973813.aspx</a> and tried to put inside a model binder but I couldn't make to work.</p>