/// <summary>
/// html代码替换
/// </summary>
/// <param name="strcontent"></param>
/// <returns></returns>
public static string replacehtmlcode(string strcontent)
{
string text1 = @"\<[^\<,\>]+\>";
regex regex1 = new regex(text1, regexoptions.singleline | regexoptions.compiled | regexoptions.ignorecase);
matchcollection collection1 = regex1.matches(strcontent);
for (int num1 = 0; num1 < collection1.count; num1++)
{
strcontent = strcontent.replace(collection1[num1].value, "");
}
return strcontent;
}