62,263
社区成员
发帖
与我相关
我的任务
分享
string str = "分析";
string path = Server.MapPath("~/0.txt");
System.IO.File.WriteAllText(path, System.Web.Security.AntiXss.AntiXssEncoder.HtmlEncode(str, true));
Response.Write(System.Web.Security.AntiXss.AntiXssEncoder.HtmlEncode(System.IO.File.ReadAllText(path),true));