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
To unescape without having to reference System.Web in order to use HttpUtility, try this:
Str = Str.Replace("+", " ");
Str = Regex.Replace(Str, "%([A-Fa-f\\d]{2})", a => "" + Convert.ToChar(Convert.ToInt32(a.Groups[1].Value, 16)));
Also, when I tried HttpUtility.UrlDecode, it didn't work for special characters áéíóúñ.