替换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(" ","<br/>");
strContent=strContent.Replace(" "," ");
return strContent;
补充:Jsp教程,面向对象编程