Skip to content

Bars Specification 0.1.0 — Transform: url_param_escape

Category: string · Since: 0.1.0

Percent-encodes the input for use as a single query parameter value.

Percent-encodes the input like url_escape, but additionally encodes & and =, so the result is safe as a single query-string parameter value.

Input coercion: string

Arguments

None.

Arity: 0–0

Worked examples

{{{ q | url_param_escape }}}

a%26b
{{{ q | url_param_escape }}}

a%20b

Full fixture: transforms/transform-url_param_escape.json