Strip double quotes from a string in .NET

后端 未结 12 2218
抹茶落季
抹茶落季 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 04:37

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

    Two quotes next to each other will function as the intended " character when inside a string.

提交回复
热议问题