def force_escape(value):
 from django.utils.html import escape
 return mark_safe(escape(value))

def force_escape ( value ) : from django . utils . html import escape return mark_safe ( escape ( value ) )
escapes a strings html .