HUGO
Menu
GitHub 86675 stars Mastodon

urls.PathEscape

Returns the given string, replacing all percent-encoded sequences with the corresponding unescaped characters.

Syntax

urls.PathEscape INPUT

Returns

string
New in v0.153.0

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

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

Last updated: January 1, 0001
Improve this page