Allows a request to include HTML markup during model binding by skipping request validation for the property. (It is strongly recommended that your application explicitly check all models where you disable request validation in order to prevent script exploits.)
Assembly: System.Web.Mvc (in System.Web.Mvc.dll)
Thetype exposes the following members.
|Equals||(Inherited from Attribute.)|
|Finalize||(Inherited from Object.)|
|GetHashCode||(Inherited from Attribute.)|
|GetType||(Inherited from Object.)|
|IsDefaultAttribute||(Inherited from Attribute.)|
|Match||(Inherited from Attribute.)|
|MemberwiseClone||(Inherited from Object.)|
|OnMetadataCreated||This method supports the ASP.NET MVC validation infrastructure and is not intended to be used directly from your code.|
|ToString||(Inherited from Object.)|
By default, the ASP.NET MVC framework checks requests during model binding to determine whether they contain potentially dangerous content as HTML markup. If HTML is detected, model binding throws an error.
If a property is marked with the attribute, the ASP.NET MVC framework skips validation for that property during model binding. For more information, see the entry Granular Request Validation in ASP.NET MVC on Marcin Dobosz's blog.
Allowing HTML input is a potential security threat. For more information, see Script Exploits Overview.