javascript replace all spaces with 20 code example Example: javascript how to deal with %20 in string decodeURI(str)