Skip to content
Discussion options

You must be logged in to vote

However, the content generated by the template invocation is escaped by default, so now I have to "unescape" each invocation by tagging it with the safe filter.

Have a look at the trait HtmlSafe. If you add the line:

impl askama::filters::HtmlSafe for Row<'_> {}

Then you don't have to manually mark invocations as | safe.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
6 replies
@seijikun
Comment options

@GuillaumeGomez
Comment options

@seijikun
Comment options

@GuillaumeGomez
Comment options

@seijikun
Comment options

Comment options

You must be logged in to vote
1 reply
@seijikun
Comment options

Answer selected by seijikun
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants