Decode a Javascript encoded string in C#
November 6, 2009
I had to use the Javascript encode method to escape some data in a hidden control recently. That data was then posted and I wanted a method to be able to convert it back. It turns out that the way to do it is using Uri.UnescapeDataString.
If anyone knows of a better method, or any issues with this approach, please leave a comment.