code: def xhtml_escape(value):
      """Escapes a string so it is valid within HTML or XML.
  
      Escapes the characters ``<``, ``>``, ``"``, ``'``, and ``&``.
      When used in attribute values the escaped strings must be enclosed
      in quotes.
  
      .. versionchanged:: 3.2
  
         Added the single quote to the list of escaped characters.
      """
      return _XHTML_ESCAPE_RE.sub(
          lambda match: _XHTML_ESCAPE_DICT[match.group(0)],
          to_basestring(value),
      )
  
file_path: catboost/contrib/python/tornado/tornado-4/tornado/escape.py
imports: from __future__ import absolute_import, division, print_function
  import json
  import re
  from tornado.util import PY3, unicode_type, basestring_type
label_desc: Use image node_id 1 for calling a global function with example usage: xhtml_escape(value) and returns: _XHTML_ESCAPE_RE