parameters: (value)
return_statement: return escape(text_type(value))
docstring: Enforce HTML escaping.  This will probably double escape variables.
docstring_summary: Enforce HTML escaping.  This will probably double escape variables.
docstring_tokens: Enforce HTML escaping . This will probably double escape variables .
function: 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))
function_tokens: def do_forceescape ( value ) : if hasattr ( value , "__html__" ) : value = value . __html__ ( ) return escape ( text_type ( value ) )