Docly Developers
Function Updated 13 Nov 2023

encodeURI(text)

Encodes a URI by replacing certain characters by escape sequences representing the UTF-8 encoding of the characters.

Parameters

textstringrequired

Text to encode

Returns

An encoded string.

Example

Mixed HTML (or any text file) with inline JavaScript between hash signs.
#write(encodeURI("https://testing.com?quotes=\"\""))#