I wrote a custom xml parser and its locking up on special characters. So naturally I urlencoded them into my database.
I can\'t seem to find an equivalent to php\'s
Check out this one
function urldecode (str) { return decodeURIComponent((str + '').replace(/\+/g, '%20')); }