替换HTML代码
发表于:2007-06-30来源:作者:点击数:
标签:
将一些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("
","<br/>");
strContent=strContent.Replace(" "," ");
return strContent;
原文转自:http://www.ltesting.net