Unescape JavaScript's escape() using C#

后端 未结 7 1729
不思量自难忘°
不思量自难忘° 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.

    0 讨论(0)
提交回复
热议问题