I am trying to remove the URI encoding from a link, but decodeURI does not seem to work completely.
My link example: /linkout?remoteUrl=http%253a%252f%252fsandbox.yoyogames.com%252fgames%252f171985-ham-heroic-armies-marching
After running the JavaScript script, it looks like this:
http%3a%2f%2fsandbox.yoyogames.com%2fgames%2f171985-ham-heroic-armies-marching
How can I get rid of the remaining invalid codes in the URI?
My decoding code:
var href = $(this).attr('href');
source share