/ Published in: JavaScript

I found some cases where JavaScript won't properly handle the Plus symbol (+)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function urldecode(str) { return decodeURIComponent((str+'').replace(/\+/g, '%20')); }
Comments
