Encode or decode URLs and strings for web applications
URL Encoding converts characters into a format that can be transmitted over the Internet. Only alphanumerics and these special characters are allowed: - _ . ~
encodeURI() - Encodes a complete URL (doesn't encode: ;,/?:@&=+$#
)
encodeURIComponent() - Encodes a URI component (encodes more characters)