asp.nettextarea换行函数代码
2023-06-13 09:14:09 时间
///<summary>
///替换html中的特殊字符
///</summary>
///<paramname="theString">需要进行替换的文本。</param>
///<returns>替换完的文本。</returns>
publicstringHtmlEncode(stringtheString)
{
theString=theString.Replace(">",">");
theString=theString.Replace("<","<");
theString=theString.Replace(""," ");
theString=theString.Replace("\"",""");
theString=theString.Replace("\"",""");
theString=theString.Replace("\n","<br/>");
returntheString;
}
相关文章
- ASP操作MySQL数据库实现简单便捷功能(asp用mysql数据库)
- asp磁盘缓存技术使用的代码
- asp利用fso给文件夹和文件改名的代码
- ReSaveRemoteFile函数之asp实现查找文件保存替换的代码
- GetPaing函数之asp采集函数中用到的获取分页的代码
- asp下实现IP限制函数代码
- 一个asp替换函数img里面多余的代码
- asp伪继承初探_实例代码
- ASP.NET导出到Excel时保留换行的代码
- asp过滤非法字符函数
- asp.ne去除html的函数代码
- asp.net下生成英文字符数字验证码的代码
- asp.net文件下载功能函数代码整理
- ASP.NETGridview与checkbox全选、全不选实现代码
- asp图片加水印的功能代码
- asp中格式化HTML函数代码SDCMS加强版
- 从ASP.NET得到MicrosoftWord文档的代码
- ASP读取Request.QueryString编码的函数代码
- ASP.NET设计网络硬盘之下载或在线查看实现代码