RemoveHtml 去除Html函数,常用哦。。
string RemoveHtml(string content)
{
string regexstr = @"<[^>]*>";
return Regex.Replace(content, regexstr, string.Empty, RegexOptions.IgnoreCase);
}
- 上一篇 »php常用函数自己总结
- 下一篇 »PHP curl_setopt函数用法介绍
{
string regexstr = @"<[^>]*>";
return Regex.Replace(content, regexstr, string.Empty, RegexOptions.IgnoreCase);
}