Encodes strings using URL encoding.
encode_url(bytes: blob|string) -> stringDescription
Section titled “Description”Encodes strings or blobs using URL encoding, replacing special characters with their percent-encoded equivalents.
bytes: blob|string
Section titled “bytes: blob|string”The input to URL encode.
Examples
Section titled “Examples”Encode a string as URL encoded
Section titled “Encode a string as URL encoded”from {input: "Hello World & Special/Chars?"}encoded = input.encode_url(){ input: "Hello World & Special/Chars?", encoded: "Hello%20World%20%26%20Special%2FChars%3F",}