filmov
tv
23. How do you decode or encode a URL in JavaScript?

Показать описание
Use encodeURIComponent() to encode and decodeURIComponent() to decode individual components of a URL. For the entire URL, use encodeURI() and decodeURI(). Encoding is used to convert characters into a format that can be safely transmitted over the internet.