MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / escape

Method escape

tools/python-3.11.9-amd64/Lib/pydoc.py:546–547  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

544 self.maxstring = self.maxother = 100
545
546 def escape(self, text):
547 return replace(text, '&', '&amp;', '<', '&lt;', '>', '&gt;')
548
549 def repr(self, object):
550 return Repr.repr(self, object)

Callers 15

repr1Method · 0.95
repr_stringMethod · 0.95
repr_instanceMethod · 0.95
translateFunction · 0.45
_find_grail_rcMethod · 0.45
preformatMethod · 0.45
docmoduleMethod · 0.45
docclassMethod · 0.45
docroutineMethod · 0.45
html_navbarFunction · 0.45
html_errorFunction · 0.45
_find_linenoMethod · 0.45

Calls 1

replaceFunction · 0.70

Tested by 2

_find_linenoMethod · 0.36
check_outputMethod · 0.36