ENCODE_FOR_URL

URL encodes the string

Description

URL encodes the given string, escaping any special characters. Returns the encoded string.

Function signature

ENCODE_FOR_URL(value: String) => String

Parameter

Description

Value

Value to convert

Examples

Formula

Return value

ENCODE_FOR_URL("https://example.com/example.html?color=red&width=120")

https%3A%2F%2Fexample.com%2Fexample.html%3Fcolor%3Dred%26width%3D120

ENCODE_FOR_URL("https://test.net/test?animal=cat&color=black")

https%3A%2F%2Ftest.net%2Ftest%3Fanimal%3Dcat%26color%3Dblack