URL encoding/decoding

urlquery is a predefined global function in Go’s template package, and has been documented for many years.
https://pkg.go.dev/text/template#hdr-Functions

We added it the Hugo documentation last year:
https://gohugo.io/functions/urlquery/

2 Likes