mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
685 B
685 B
title, description, categories, keywords, params
| title | description | categories | keywords | params | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| urls.PathEscape | Returns the given string, applying percent-encoding to special characters and reserved delimiters so it can be safely used as a segment within a URL path. |
|
{{< new-in v0.153.0 />}}
The urls.PathEscape function does the inverse transformation of urls.PathUnescape.
{{ urls.PathEscape "my café" }} → my%20caf%C3%A9
Use this function to escape a string so that it can be safely used as an individual segment within a URL path.