日期:2014-05-18 浏览次数:20950 次
string text = @"ttt\r\n\ddd "; string result = text.Replace("\\r\\n", "<br/>"); result = result.Replace("\\", ""); Response.Write(result);
------解决方案--------------------
string str = @"ttt\r\n\ddd ".Replace("\\r\\n","\r\n");