Function minijinja::escape_formatter
source · pub fn escape_formatter(
out: &mut Output<'_>,
state: &State<'_, '_>,
value: &Value,
) -> Result<(), Error>
Expand description
The default formatter.
This formatter takes a value and directly writes it into the output format while honoring the requested auto escape format of the state. If the value is already marked as safe, it’s handled as if no auto escaping was requested.
Html
: performs HTML escapingNone
: no escapingCustom(..)
: results in an error