源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

asp.net textarea换行函数代码

  • 时间:2022-11-20 12:17 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:asp.net textarea换行函数代码
[u]复制代码[/u] 代码如下:
/// <summary> /// 替换html中的特殊字符 /// </summary> /// <param name="theString">需要进行替换的文本。</param> /// <returns>替换完的文本。</returns> public string HtmlEncode(string theString) { theString=theString.Replace(">", ">"); theString=theString.Replace("<", "<"); theString=theString.Replace(" ", "  "); theString=theString.Replace(""", """); theString=theString.Replace("'", "'"); theString=theString.Replace("n", "<br/> "); return theString; }
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部