Skip to content

Instantly share code, notes, and snippets.

@Fire-
Created April 25, 2015 01:01
Show Gist options
  • Save Fire-/fba04a6352f73a191238 to your computer and use it in GitHub Desktop.
Save Fire-/fba04a6352f73a191238 to your computer and use it in GitHub Desktop.
don't look at me I'm terrible
decoded = (function (string) {
try {
return decodeURIComponent(string);
} catch (e) {
return unescape(string);
}
})(encoded);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment