替換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 |