使用正則表達式 RegularExpression

1
2
3
4
public static string StripHTML(string input)
{
return Regex.Replace(input, "<[a-zA-Z/].*?>", String.Empty);
}