encoding.HexDecode
Returns the hexadecimal decoding of the given content.
- Syntax
- encoding.HexDecode INPUT
- Returns
- string
Usage
The encoding.HexDecode function returns the hexadecimal decoding of the given content. The function throws an error if the input is not a valid hexadecimal string. Use the encoding.HexEncode function to reverse the operation.
Examples
{{ "48656c6c6f20776f726c64" | encoding.HexDecode }} → Hello worldLast updated:
November 8, 2026
:
content: Remove categories from front matter (1cc1dd83a)
Improve this page