Skip to content

Treat nunjucks variables as safe by default #907

@damithc

Description

@damithc

Current: if a variable has html syntax in it e.g., <span id="x"><br/></span>, it needs to be used with the safe filter e.g., {{ x | safe }}.

Suggestion: set default mode to safe so that the safe filter is not required

Relevant nunjucks docs:
image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions