C# String.Replace double quotes and Literals

前端 未结 4 834
孤街浪徒
孤街浪徒 2021-02-02 14:58

I\'m fairly new to c# so that\'s why I\'m asking this here.

I am consuming a web service that returns a long string of XML values. Because this is a string all the attri

4条回答
  •  眼角桃花
    2021-02-02 15:23

    There's no reason to use a Regular expression at all... that's a lot heavier than what you need.

    string xmlSample = "blah blah blah";
    
    xmlSample = xmlSample.Replace("\\\", "\"");
    

提交回复
热议问题