c# replace \" characters

后端 未结 6 1479
隐瞒了意图╮
隐瞒了意图╮ 2020-12-29 20:39

I am sent an XML string that I\'m trying to parse via an XmlReader and I\'m trying to strip out the \\\" characters.

I\'ve tried

.Repla         


        
6条回答
  •  我在风中等你
    2020-12-29 21:06

    In .NET Framework 4 and MVC this is the only representation that worked:

    Replace(@"""","")
    

    Using a backslash in whatever combination did not work...

提交回复
热议问题