Perhaps mark_for_escaping?
https://docs.djangoproject.com/en/dev/ref/utils/#django.utils.safestring.mark_safe