Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MirrowApp/mirrow
/ escapeForJsString
Function
escapeForJsString
packages/core/src/compiler/compiler.ts:424–426 ·
view source on GitHub ↗
(value: string)
Source
from the content-addressed store, hash-verified
422
}
423
424
function
escapeForJsString(value: string): string {
425
return
value.replace(/\\/g,
"\\\\"
).replace(/
"/g, '\\"
');
426
}
Callers
1
renderJsDirectives
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected