asp.net mvc encode on form post
- by Gidon
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.