MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / serializeForInlineScript

Function serializeForInlineScript

scripts/static-server.mjs:370–376  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

368 * AGENT_CANVAS_DISABLE_TELEMETRY=1 or the --disable-telemetry flag.
369 */
370export function serializeForInlineScript(value) {
371 return JSON.stringify(value)
372 .replace(/</g, "\\u003c")
373 .replace(/>/g, "\\u003e")
374 .replace(/\u2028/g, "\\u2028")
375 .replace(/\u2029/g, "\\u2029");
376}
377
378function makeConfigInjectionScript(
379 sessionApiKey,

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected