清除HMTL 并截取前50个字符
protected string FormatStr(string str)
{
str = System.Text.RegularExpressions.Regex.Replace(str, "<[^>]+>", "");
str = str.Length > 50 ? str.Substring(0, 50) + "..." : str;
return str;
}
{
str = System.Text.RegularExpressions.Regex.Replace(str, "<[^>]+>", "");
str = str.Length > 50 ? str.Substring(0, 50) + "..." : str;
return str;
}