parameters: (text)
return_statement: return text
docstring: Escape any html in the given text.
docstring_summary: Escape any html in the given text.
docstring_tokens: Escape any html in the given text .
function: def esc(text):
    """Escape any html in the given text."""
    text = re.sub(r'&', '&amp;', text)
    text = re.sub(r'<', '&lt;', text)
    text = re.sub(r'>', '&gt;', text)
    def link_if_exists(m):
      name = m.group(1)
      url = 'https://clang.llvm.org/doxygen/classclang_1_1%s.html' % name
      if url not in doxygen_probes:
        try:
          print('Probing %s...' % url)
          urlopen(url)
          doxygen_probes[url] = True
        except:
          doxygen_probes[url] = False
      if doxygen_probes[url]:
        return r'Matcher&lt;<a href="%s">%s</a>&gt;' % (url, name)
      else:
        return m.group(0)
    text = re.sub(
      r'Matcher&lt;([^\*&]+)&gt;', link_if_exists, text)
    return text
function_tokens: def esc ( text ) : text = re . sub ( r'&' , '&amp;' , text ) text = re . sub ( r'<' , '&lt;' , text ) text = re . sub ( r'>' , '&gt;' , text ) def link_if_exists ( m ) : name = m . group ( 1 ) url = 'https://clang.llvm.org/doxygen/classclang_1_1%s.html' % name if url not in doxygen_probes : try : print ( 'Probing %s...' % url ) urlopen ( url ) doxygen_probes [ url ] = True except : doxygen_probes [ url ] = False if doxygen_probes [ url ] : return r'Matcher&lt;<a href="%s">%s</a>&gt;' % ( url , name ) else : return m . group ( 0 ) text = re . sub ( r'Matcher&lt;([^\*&]+)&gt;' , link_if_exists , text ) return text