You can try setting the requestValidationMode="2.0" attribute in the <httpRuntime /> element in web.config
<system.web> ... <httpRuntime targetFramework="4.5" requestValidationMode="2.0" /> ... </system.web>
And decorate your controller / action (choose the appropriate one):
[HttpPost] [ValidateInput(false)] public ActionResult MyMethod(string s) { .... }
Note. Always sanitize your entrance.
source share