Back to Hugo

urls.PathUnescape

docs/content/en/functions/urls/PathUnescape.md

0.161.1335 B
Original Source

{{< new-in v0.153.0 />}}

The urls.PathUnescape function does the inverse transformation of urls.PathEscape.

go-html-template
{{ urls.PathUnescape "A%2Fb%2Fc%3Fd=%C3%A9&f=g+h" }} → A/b/c?d=é&f=g+h

Use this function to decode an individual segment within a URL path.