Reputation: 143
I have a page in MVC where i want to take the email adddress as the input which can be of format like:"Jone Davi" <[email protected]>
, "Ben Miller" <[email protected]>
, "Jane Ton" <[email protected]>
,
Then from this I want to parse the valid emailaddress.But on click of the submit button getting error message" A potentially dangerous Request.Form value was detected from the client "
Thus is there any way to take the input of email address in above format and bypass the security error for that specific page.
Thanks in advance.
Upvotes: 1
Views: 355
Reputation: 10397
You need to escape the angle-brackets. Use <
and >
instead.
Check out this article for more details on escaping HTML in ASP.net MVC.
Upvotes: 1