From https://docs.djangoproject.com/en/2.2/topics/i18n/translation/#internationalization-in-template-code:
WARNING: Translated strings will not be escaped when rendered in a template. This allows you to include HTML in translations, for example for emphasis, but potentially dangerous characters (e.g. ") will also be rendered unchanged.