MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / jsFormat

Function jsFormat

pythonScripts/jsFormat.py:1–4  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

1def jsFormat(text):
2 for tup in [("\\", "\\\\"), ("\"", "\\\"")]:
3 text = text.replace(tup[0], tup[1])
4 return text

Callers 2

genText.pyFile · 0.90
genAscii.pyFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected