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

Function serializeForInlineScript

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

Source from the content-addressed store, hash-verified

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

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected