code: def repr_htmlsafe(t):
      """Repr a value and html-escape the result.
  
      If an error is thrown by the repr, show a placeholder.
      """
      try:
          r = repr(t)
      except Exception:
          r = "(Error Displaying {})".format(type(t).__name__)
  
      return escape_html(str(r), quote=True)
  
imports: from collections import namedtuple
  import time
  from interface import implements
  from zipline.utils.compat import contextmanager, escape_html
  from zipline.utils.string_formatting import bulleted_list
  from .iface import PipelineHooks
label_desc: Use image node_id 1 for calling a global function with example usage: repr_htmlsafe(t) and returns: escape_html