日期:2014-05-18 浏览次数:20435 次
//格式化文本 public string FormatString(string str) { str = str.Replace(" ", " "); str = str.Replace("<", "<"); str = str.Replace(">", ">"); str = str.Replace('\n'.ToString(), "<br>"); return str; }