MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / make_valid_xml_value

Function make_valid_xml_value

_pydevd_bundle/pydevd_xml.py:26–28  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

24
25
26def make_valid_xml_value(s):
27 # Same thing as xml.sax.saxutils.escape but also escaping double quotes.
28 return s.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;").replace('"', "&quot;")
29
30
31class ExceptionOnEvaluate:

Callers 3

make_thread_stack_strMethod · 0.85
var_to_xmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected