Unescape JavaScript's escape() using C#

后端 未结 7 1753
不思量自难忘°
不思量自难忘° 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:11

    I spent 8 hours trying to get

    HttpUtility.UrlDecode 
    

    to work, and gave up and used

    HttpUtility.HtmlDecode
    

    which worked instantly.

提交回复
热议问题