code: def escape_silent(s):
      """Like :func:`escape` but treats ``None`` as the empty string.
      Useful with optional values, as otherwise you get the string
      ``'None'`` when the value is ``None``.
  
      >>> escape(None)
      Markup('None')
      >>> escape_silent(None)
      Markup('')
      """
      if s is None:
          return Markup()
      return escape(s)
  
imports: from .None import Markup
  from ._compat import text_type
label_desc: Use image node_id 2 for calling a global function with example usage: escape_silent(s) and returns: escape, Markup