Return to Snippet

Revision: 52336
at October 20, 2011 07:37 by Jamie


Initial Code
function urldecode(str) {
   return decodeURIComponent((str+'').replace(/\+/g, '%20'));
}

Initial URL


Initial Description
I found some cases where JavaScript won't properly handle the Plus symbol (+)

Initial Title
URl Decode For JavaScript

Initial Tags
url

Initial Language
JavaScript