Skip to content

Bars Specification 0.1.0 — Transform: url_encode

Category: string · Since: 0.1.0

Form-encodes the input.

Form-encodes the input as application/x-www-form-urlencoded: a space becomes +; the unreserved set [A-Za-z0-9-_.~] is preserved; everything else is percent-encoded as UTF-8 using uppercase hex digits.

Input coercion: string

Arguments

None.

Arity: 0–0

Worked examples

{{{ q | url_encode }}}

hello+world%21
{{{ q | url_encode }}}

caf%C3%A9

Full fixture: transforms/transform-url_encode.json