(value)
return escape(text_type(value))
Enforce HTML escaping.  This will probably double escape variables.
Enforce HTML escaping.  This will probably double escape variables.
Enforce HTML escaping . This will probably double escape variables .
def do_forceescape(value):
    """Enforce HTML escaping.  This will probably double escape variables."""
    if hasattr(value, "__html__"):
        value = value.__html__()
    return escape(text_type(value))
def do_forceescape ( value ) : if hasattr ( value , "__html__" ) : value = value . __html__ ( ) return escape ( text_type ( value ) )