W3docs

String Functions

URL Encoder

Percent-encode a string for safe use in URLs and query parameters. Matches PHP-style encoding (space → `+`).