Python语言技术文档

微信小程序技术文档

php语言技术文档

jsp语言技术文档

asp语言技术文档

C#/.NET语言技术文档

html5/css技术文档

javascript

点击排行

您现在的位置:首页 > 技术文档 > C#/.NET入门教程

asp.ne去除html的函数代码

来源:中文源码网    浏览:121 次    日期:2024-05-09 20:33:32
【下载文档:  asp.ne去除html的函数代码.txt 】


asp.ne去除html的函数代码
复制代码 代码如下:/// /// 过滤字符串中的html代码 /// /// /// 返回过滤之后的字符串 public static string LostHTML(string Str) { string Re_Str = ""; if (Str != null) { if (Str != string.Empty) { string Pattern = "<\\/*[^<>]*>"; Re_Str = Regex.Replace(Str, Pattern, ""); } } return (Re_Str.Replace("\\r\\n", "")).Replace("\\r", ""); }

相关内容