Version: v0.5.1 - Beta.  We welcome contributors & feedback.  THanks!

String.encodeUrl

encodeUrl()

Description

Encode with percent-escapes (RFC 3986).

let query = '1/3 + 50%';
let search = '/search?q=' ~ query.encodeUrl();
//= '/search?q=1%2F3%20%2B%2050%25'

See Also