替换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","<br/>");
strContent=strContent.Replace(" "," ");
return strContent;
總結
- 上一篇: 关闭页面不用提示的方法
- 下一篇: 如何播放RM文件?