开发者

Is use of AntiXss library necessary/recommended in mvc 3 razor application

Is use of AntiXss library necess开发者_开发知识库ary/recommended in mvc 3 razor application? Where can I find out more about encoding options for mvc 3?


Razor automatically encodes the output to prevent XSS. If you need to output HTML mark-up then you can use the @Html.Raw(myVariable) method or make sure the variables you need to not be encoded are of type HtmlString.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜