strip_attr
Remove every HTML attribute except an optional allowlist.
Syntax
{{ value | strip_attr }}{{ value | strip_attr:"href" }}Example
Basic usage
1{2 "html": "<a href=\"/about\" class=\"nav\">About</a>"3}1{{ html | strip_attr:"href" }}1<a href="/about">About</a>