MCPcopy Index your code
hub / github.com/python/cpython / escape

Method escape

Lib/pydoc.py:565–566  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

563 self.maxstring = self.maxother = 100
564
565 def escape(self, text):
566 return replace(text, '&', '&amp;', '<', '&lt;', '>', '&gt;')
567
568 def repr(self, object):
569 return Repr.repr(self, object)

Callers 15

repr1Method · 0.95
repr_stringMethod · 0.95
repr_instanceMethod · 0.95
preformatMethod · 0.80
docmoduleMethod · 0.80
docclassMethod · 0.80
docroutineMethod · 0.80
html_navbarFunction · 0.80
html_errorFunction · 0.80
_find_linenoMethod · 0.80
check_outputMethod · 0.80

Calls 1

replaceFunction · 0.70