potentially dangerous Request.Form value was detected 에러일 경우 MVC에선

iamgun(46)
Published in
#it
Words
23
Reading
1 min
9y
Listen to this post
~1 min
폼에 html을 넘겨서 디비에 저장해야 할경우

위의 같은 에러가 납니다. 어떻게 해야할까요 ?

답은 Action Method에 아래의 Attribute 를 삽입해 주면 됩니다.

ValidateInput
(false)
potentially dangerous Request.Form value was detected 에러일 경우 MVC에선 | Ecency