标签:style blog color os io div 代码 amp
string result = item["FContent"].ToString(); result = result.Replace(" ", " "); result = result.Replace("‘‘", "\""); result = result.Replace("<", "<"); result = result.Replace(">", ">"); result = result.Replace("&", "&"); result = result.Replace("<br>", "\r\n"); result = Regex.Replace(result, @"<[\s\S]*?>", string.Empty, RegexOptions.IgnoreCase);
直接送上代码,东西很简单,就不解释了,希望能帮到有需要的同学,要转载记的保留我连接!!~
标签:style blog color os io div 代码 amp
原文地址:http://www.cnblogs.com/linyijia/p/3912503.html