Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
1
def
jsFormat(text):
2
for
tup in [(
"\\"
,
"\\\\"
), (
"\"
", "
\\\
""
)]:
3
text = text.replace(tup[0], tup[1])
4
return
text
Callers
2
genText.py
File · 0.90
genAscii.py
File · 0.90
Calls
no outgoing calls
Tested by
no test coverage detected