MCPcopy
hub / github.com/FlowiseAI/Flowise / handleEscapesJSONParse

Function handleEscapesJSONParse

packages/components/src/utils.ts:701–706  ·  view source on GitHub ↗
(input: string, reverse: Boolean)

Source from the content-addressed store, hash-verified

699]
700
701function handleEscapesJSONParse(input: string, reverse: Boolean): string {
702 for (const element of jsonEscapeCharacters) {
703 input = reverse ? input.replaceAll(element.value, element.escape) : input.replaceAll(element.escape, element.value)
704 }
705 return input
706}
707
708function iterateEscapesJSONParse(input: any, reverse: Boolean): any {
709 for (const element in input) {

Callers 2

iterateEscapesJSONParseFunction · 0.85
handleEscapeCharactersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected