如下,可以使用C#的Replace()方法来替换,但有一点需要注意的是backslash(反斜杠)是特殊字符。
class="code_img_closed" src="/Upload/Images/2017120112/0015B68B3C38AA5B.gif" alt="" />logs_code_hide('08e917ee-f9d4-4212-957e-61f57183c8c6',event)" src="/Upload/Images/2017120112/2B1B950FA3DF188F.gif" alt="" />
string s = "[\"aaaaaaaaaaaaaaaaaaaaaa\"]"; string ss = s.Replace("\\",""); Response.Write(ss);Source Code