asp.net mvc encode on form post
Posted
by Gidon
on Stack Overflow
See other posts from Stack Overflow
or by Gidon
Published on 2010-04-28T07:53:38Z
Indexed on
2010/04/28
8:23 UTC
Read the original article
Hit count: 537
Hello, I'm using a rich text editor in my asp.net mvc form (nicedit with a textarea) and when I submit the form on post, because it is not html encoded I get the following message: "A potentially dangerous Request.Form value was detected from the client" . How can I html encode the textarea on post ? I don't want to cancel the validation. Is there a way to use the html.encode helper on submit?
Thank you.
© Stack Overflow or respective owner