Unescape JavaScript's escape() using C#

后端 未结 7 1752
不思量自难忘°
不思量自难忘° 2020-12-08 06:29

Are the any functions in C# that handle escape/unescape like JavaScript?

I have a JSON string like this:

{\"Feeds\":[{\"Url\":\"www.test.com\",\"FeedTy

7条回答
  •  被撕碎了的回忆
    2020-12-08 07:10

    Aw man, why do we over-think stuff so much sometimes. When an API function is being silly, send a karma cuss at the library developer, then work-around it...

    HttpUtility.UrlEncode(editext, System.Text.Encoding.Default).Replace("+","%20");
    

提交回复
热议问题