MVC阻止用户注入JavaScript代码或者Html标记

使用HttpUtility.HtmlEncode("")将字符串进行过滤处理

原文地址:https://www.cnblogs.com/xuhongfei/p/5275124.html