CXYVIP官网源码交易平台_网站源码_商城源码_小程序源码平台-丞旭猿论坛
CXYVIP官网源码交易平台_网站源码_商城源码_小程序源码平台-丞旭猿论坛
CXYVIP官网源码交易平台_网站源码_商城源码_小程序源码平台-丞旭猿论坛

textarea换行函数代码

实现代码如下:

/// <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;
}

以上就是【asp.net textarea换行函数代码】的全部内容了,欢迎留言评论进行交流!

© 版权声明
THE END
喜欢就支持一下吧
点赞0赞赏 分享
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容