开发者

How to [AllowHtml] but deny any scripts?

开发者 https://www.devze.com 2023-04-01 06:32 出处:网络
In asp.net mvc to post any html i need to set [AllowHtml] on property and Validate(input) on controller, but how allowing post开发者_运维百科 html deny to post any scripts?You could look at using Micr

In asp.net mvc to post any html i need to set [AllowHtml] on property and Validate(input) on controller, but how allowing post开发者_运维百科 html deny to post any scripts?


You could look at using Microsoft Anti-Cross Site Scripting Library V4.0 to sanitize the input

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号