The template engine is designed to escape fields that are handed over to the context dictionary. This is desirable for HTML, but not for plain text. Nevertheless also every context variable in {% block plain %} {% endblock %} or in {% block subject %} {% endblock %} is escaped. E. g. “1 < 2 > 0 O'Leary "the master"” becomes “1 < 2 > 0 O'Leary "the master"”.
But it would be better if autoescape is switched off by django-templated-email for blocks subject and plain in order to avoid unexpected results or at least write about autoescape off in the documentation.
The template engine is designed to escape fields that are handed over to the context dictionary. This is desirable for HTML, but not for plain text. Nevertheless also every context variable in
{% block plain %} {% endblock %}
or in{% block subject %} {% endblock %}
is escaped. E. g.“1 < 2 > 0 O'Leary "the master"”
becomes“1 < 2 > 0 O'Leary "the master"”
.Workaround is to use
But it would be better if autoescape is switched off by django-templated-email for blocks subject and plain in order to avoid unexpected results or at least write about autoescape off in the documentation.