MCPcopy Create free account
hub / github.com/Kong/httpsnippet / EscapeOptions

Interface EscapeOptions

src/helpers/escape.ts:1–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface EscapeOptions {
2 /**
3 * The delimiter that will be used to wrap the string (and so must be escaped
4 * when used within the string).
5 * Defaults to "
6 */
7 delimiter?: string;
8
9 /**
10 * The char to use to escape the delimiter and other special characters.
11 * Defaults to \
12 */
13 escapeChar?: string;
14
15 /**
16 * Whether newlines (\n and \r) should be escaped within the string.
17 * Defaults to true.
18 */
19 escapeNewlines?: boolean;
20}
21
22/**
23 * Escape characters within a value to make it safe to insert directly into a

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…