// Site filters registered on the Jinja environment.
//
// These are the pieces a site needs beyond the Jinja standard library: slugs,
// dates, Markdown-in-a-field, site URLs, truncation and JSON for `` from ending the
// host tag; escapes are decoded by JavaScript when the script runs.
let escaped = text
.replace_all(old="<", new="\\u003c")
.replace_all(old=">", new="\\u003e")
.replace_all(old="&", new="\\u0026")
@minijinja.Value::from_safe_string(escaped)
}