Logo
技术 SharePoint

C# 去除所有的html标签

photo
Pastore Antonio

2022年03月04日

/// <summary>
/// 去除所有的html标签
/// </summary>
/// <param name=”strhtml”></param>
/// <returns></returns>
public static string Removestriphtml(string strhtml)
{
string stroutput = strhtml;
Regex regex = new Regex(@”<[^>]+>|</[^>]+>”);
stroutput = regex.Replace(stroutput, “”);
return stroutput;
}

本文为原创文章,请注意保留出处!
修复群晖Synology Drive client右键菜单缺失问题 Local, clean & environmental 作者:Pastore Antonio
1806 浏览量
1780 浏览量
configure: error: Package requirements (oniguruma) were not met Local, clean & environmental 作者:Pastore Antonio
1525 浏览量
Adobe Acrobat Pro 激活 Local, clean & environmental 作者:Pastore Antonio
1520 浏览量
追寻日出,找回自己 Local, clean & environmental 作者:Pastore Antonio
1489 浏览量