Created
January 21, 2013 20:59
-
-
Save tmbritton/4589320 to your computer and use it in GitHub Desktop.
Javascript url decode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Decodes url encoded strings | |
* | |
* @param: string - url or email address we want to decode | |
*/ | |
function urldecode(url) { | |
return decodeURIComponent(url.replace(/\+/g, ' ')); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment