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
textstringrequiredText 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=\"\""))#The template above produces this output:
https://testing.com?quotes=%22%22