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
| Parameter | Type | Default value |
|---|---|---|
text | string | undefined |
policy | OutboundCommentaryPolicy | 'strip' |