@register.simple_tag(takes_context=True)
def escape_format_html(context):
 return format_html('Hello {0}!', context['name'])

@ register . simple_tag ( takes_context = True ) def escape_format_html ( context ) : return format_html ( 'Hello {0}!' , context [ 'name' ] )
a tag that uses format_html .