url.queryEscape

This function encodes the input string so it can be safely placed inside a URL query. Note that this function does not create the full query string.

Syntax

url.queryEscape(queryValue)

Arguments

Argument

Type

Description

queryValue

string

URL query value

Returns

Type

Description

string

The escaped value of the input

Examples

The function url.queryEscape("hello world") returns hello+world.