Skip to content

Graphorin API reference v0.8.0


Graphorin API reference / @graphorin/channels / / sanitizeChannelOutbound

Function: sanitizeChannelOutbound()

ts
function sanitizeChannelOutbound(text, policy?): OutboundSanitizationResult;

Defined in: packages/channels/src/outbound.ts:49

Sanitize one outbound channel text. 'strip' (default) removes matched fragments AND drops segments an upstream boundary already wrapped; 'wrap' behaves like the server/session boundaries (idempotent envelope); 'pass-through' disables the pass.

Parameters

ParameterTypeDefault value
textstringundefined
policyOutboundCommentaryPolicy'strip'

Returns

OutboundSanitizationResult

Stable