.NET MVC submit the form appears Request.Form value was detected potentially dangerous

A recent rich text editor Submit encountered this problem, Baidu search, I found that this problem has already been met, tried it and found that you can solve, what record

The first step in the Action write [ValidateInput (false)]

The second step, in adding Web.Config requestValidationMode = "2.0" 

I was so added

Guess you like

Origin www.cnblogs.com/wu-xin/p/12202472.html