MCPcopy Index your code
hub / github.com/RustPython/RustPython / escape

Method escape

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

Source from the content-addressed store, hash-verified

608 self.maxstring = self.maxother = 100
609
610 def escape(self, text):
611 return replace(text, '&', '&amp;', '<', '&lt;', '>', '&gt;')
612
613 def repr(self, object):
614 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