将一些HTML替换掉eg:strContent=strContent.Replace(&,&a
eg: strContent=strContent.Replace("&","&"); strContent=strContent.Replace("'","''"); strContent=strContent.Replace("<","<"); strContent=strContent.Replace(">",">"); strContent=strContent.Replace("chr(60)","<"); strContent=strContent.Replace("chr(37)",">"); strContent=strContent.Replace("/"","""); strContent=strContent.Replace(";",";"); strContent=strContent.Replace("/n","<br/>"); strContent=strContent.Replace(" "," "); return strContent;
本文由来源 21aspnet,由 system_mush 整理编辑,其版权均为 21aspnet 所有,文章内容系作者个人观点,不代表 Java架构师必看 对观点赞同或支持。如需转载,请注明文章来源。