escapexml

Escape the value for insertion in xml output.

For example:

{{ value|escapexml }}

When the value is <hel'lo> then the output is &#60;hel&#39;lo&#62;.

Edit on GitHub

escapejson Character escaping fix_ampersands

Referred by

Filters

Filters transform template variables before they are rendered.