mvc2 在 .net 4 下的ValidateInput(false) 无效

错误:

A potentially dangerous Request.Form value was detected from the client (Text="<p>test?</p>").

<configuration>
  <system.web>
   <httpRuntime requestValidationMode="2.0" />
  </system.web>
  <pages validateRequest="false">
  </pages>
</configuration>

这样搞定

原文地址:https://www.cnblogs.com/myx/p/1844507.html