替换HTML代码

将一些HTML替换掉

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"," ");
strContent=strContent.Replace(" "," ");
return strContent;

Published At
Categories with Web编程
Tagged with
comments powered by Disqus