MCPcopy Index your code
hub / github.com/matplotlib/matplotlib / _escape_cdata

Function _escape_cdata

lib/matplotlib/backends/backend_svg.py:69–73  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

67
68
69def _escape_cdata(s):
70 s = s.replace("&", "&")
71 s = s.replace("<", "&lt;")
72 s = s.replace(">", "&gt;")
73 return s
74
75
76_escape_xml_comment = re.compile(r'-(?=-)')

Callers 5

_escape_commentFunction · 0.85
_quote_escape_attribFunction · 0.85
__flushMethod · 0.85
startMethod · 0.85
endMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…