parameters: (s: t.Any)
return_statement: return Markup(
          str(s)
          .replace("&", "&amp;")
          .replace(">", "&gt;")
          .replace("<", "&lt;")
          .replace("'", "&#39;")
          .replace('"', "&#34;")
      )
docstring: Replace the characters ``&``, ``<``, ``>``, ``'``, and ``"`` in
      the string with HTML-safe sequences. Use this if you need to display
      text that might contain such characters in HTML.
  
      If the object has an ``__html__`` method, it is called and the
      return value is assumed to already be safe for HTML.
  
      :param s: An object to be converted to a string and escaped.
      :return: A :class:`Markup` string with the escaped text.
docstring_summary: Replace the characters ``&``, ``<``, ``>``, ``'``, and ``"`` in
      the string with HTML-safe sequences. Use this if you need to display
      text that might contain such characters in HTML.
docstring_tokens: Replace the characters & < > and in the string with HTML - safe sequences . Use this if you need to display text that might contain such characters in HTML .
function: def escape(s: t.Any) -> Markup:
      """Replace the characters ``&``, ``<``, ``>``, ``'``, and ``"`` in
      the string with HTML-safe sequences. Use this if you need to display
      text that might contain such characters in HTML.
  
      If the object has an ``__html__`` method, it is called and the
      return value is assumed to already be safe for HTML.
  
      :param s: An object to be converted to a string and escaped.
      :return: A :class:`Markup` string with the escaped text.
      """
      if hasattr(s, "__html__"):
          return Markup(s.__html__())
  
      return Markup(
          str(s)
          .replace("&", "&amp;")
          .replace(">", "&gt;")
          .replace("<", "&lt;")
          .replace("'", "&#39;")
          .replace('"', "&#34;")
      )
function_tokens: def escape ( s : t . Any ) -> Markup : if hasattr ( s , "__html__" ) : return Markup ( s . __html__ ( ) ) return Markup ( str ( s ) . replace ( "&" , "&amp;" ) . replace ( ">" , "&gt;" ) . replace ( "<" , "&lt;" ) . replace ( "'" , "&#39;" ) . replace ( '"' , "&#34;" ) )