MCPcopy Create free account
hub / github.com/cppcheck-opensource/cppcheck / strtoxml

Function strtoxml

test/scripts/extracttests.py:168–170  ·  view source on GitHub ↗

Convert string to xml/html format

(s)

Source from the content-addressed store, hash-verified

166 code = None
167
168def strtoxml(s):
169 """Convert string to xml/html format"""
170 return s.replace('&', '&amp;').replace('"', '&quot;').replace('<', '&lt;').replace('>', '&gt;')
171
172
173def trimname(name):

Callers 2

writeHtmlFileFunction · 0.85
extracttests.pyFile · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected