Skip to content

Bars Specification 0.1.0 — Transform: url_escape

Category: string · Since: 0.1.0

Percent-encodes the input per RFC 3986.

RFC 3986 percent-encodes the input: a space becomes %20; the unreserved set is preserved; the reserved set :/?#[]@!$&'()*+,;= is preserved; everything else is percent-encoded as UTF-8.

Input coercion: string

Arguments

None.

Arity: 0–0

Worked examples

{{{ q | url_escape }}}

hello%20world
{{{ q | url_escape }}}

a:/?#[]@!$&'()*+,;=b

Full fixture: transforms/transform-url_escape.json