Strip double quotes from a string in .NET

后端 未结 12 2215
抹茶落季
抹茶落季 2020-12-24 04:16

I\'m trying to match on some inconsistently formatted HTML and need to strip out some double quotes.

Current:


         


        
12条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-24 05:03

    s = s.Replace("\"", "");
    

    You need to use the \ to escape the double quote character in a string.

提交回复
热议问题