title: Disabling request validation for HttpContext.Current.Request.Params
body: <p>Using MVC5 I use <code>[AllowHtml]</code> on specific model properties to allow HTML to be POSTed up to the server.</p>
  
  <p>In some places in code I want to access the Request params like so:</p>
  
  <pre><code>string wlid = HttpContext.Current.Request.Params["wlid"];
  </code></pre>
  
  <p>But this fails with a <code>HttpRequestValidationException</code> if any HTML is included in the request, even if the model propertiy is decorated with <code>[AllowHtml]</code>.</p>
  
  <p>Is there any way to access <code>HttpContext.Current.Request.Params["wlid"]</code> without completly disabling request validation? </p>
  
  <p>Perhaps disabling request validation, accessing the Request.Params and then enabling it again instantly?</p>