替换HTML代码 - 中国WEB开发者网络 (http://www.webasp.net) -- 技术教程 (http://www.webasp.net/article/) --- 替换HTML代码 (http://www.webasp.net/article/15/14282.htm) |
| -- 作者:未知 -- 发布日期: 2004-10-27 |
| 将一些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; |
| webasp.net |