Encoding, escaping and hashing
safe- Marks the value safe.
escape- Tera’s escape (leaves safe input alone). Go’s
htmlishtml_escape. escape_html- Tera’s HTML escape of a string.
escape_xml- Tera’s XML escape (
",'; leaves safe input alone). Go’stransform.XMLEscapeisxml_escape. xml_escape- Drops the characters XML forbids, then escapes
& < > " ', tab, newline and CR (" ' 	 
 
, Go’sxml.EscapeText) even when the input is safe; the result is safe. html_escape- Escapes
& < > " 'even when the input is safe; the result is safe. html_unescape- Decodes HTML entities.
jsonify- JSON with sorted keys,
<>&escaped as\u003c…;indentpretty-prints. unmarshal- Parses a string or resource as JSON, TOML, YAML, CSV or XML (
formatoverrides detection); keys sorted. remarshal- Re-encodes data as
format(toml,yaml,json). urlencode- Percent-encodes for a URL path (keeps
/). urlencode_strict- Percent-encodes every non-alphanumeric character.
urldecode- Decodes percent-encoding.
b64_encode- Base64 (
url_safe,padded). b64_decode- Decodes base64.
md5- Hex MD5.
sha1- Hex SHA-1.
sha256- Hex SHA-256.
fnv32a- FNV-1a 32-bit hash as an integer.
xxhash- Hex xxHash64.