fix_ampersands

Replaces ampersands in the value with “&” entities.

For example:

{{ value|fix_ampersands }}

If the value is hel&lo then the output is hel&lo.

Edit on GitHub

escapexml Character escaping force_escape

Referred by

Filters

Filters transform template variables before they are rendered.