MCPcopy Create free account
hub / github.com/anomalyco/opencode / escapeSystemUpdateText

Function escapeSystemUpdateText

packages/llm/src/protocols/shared.ts:111–112  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

109export const joinText = (parts: ReadonlyArray<{ readonly text: string }>) => parts.map((part) => part.text).join("\n")
110
111const escapeSystemUpdateText = (text: string) =>
112 text.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;")
113
114/**
115 * Stable fallback representation for chronological `Message.system(...)`

Callers 1

wrapSystemUpdateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected