Function askama::filters::safe

source ·
pub fn safe<E, T>(e: E, v: T) -> Result<MarkupDisplay<E, T>, Error>
where E: Escaper, T: Display,
Expand description

Marks a string (or other Display type) as safe

Use this is you want to allow markup in an expression, or if you know that the expression’s contents don’t need to be escaped.

Askama will automatically insert the first (Escaper) argument, so this filter only takes a single argument of any type that implements Display.