Skip to main content

strings.QueryEscape

Escape for a URL query value (space becomes +)

strings.QueryEscape(s: string) -> string

Arguments​

NameType
sstring

Example​

{{ strings.QueryEscape("a b/c") }}

Returns "a+b%2Fc".