code: def do_forceescape(value):
      
      if hasattr(value, '__html__'):
          value = value.__html__()
      return escape(unicode(value))
docs: Enforce HTML escaping.  This will probably double escape variables.