Skip to main content

SanitizeInputOptions

@webda/core


Type Alias: SanitizeInputOptions

SanitizeInputOptions = sanitize.IOptions & object

Defined in: packages/core/src/contexts/sanitize.ts:96

Options of the input sanitization: the sanitize-html options of the default (text) sanitization, plus what is sanitized another way

Type Declaration​

modes?​

optional modes?: SanitizeModes

The paths whose string value is sanitized with another mode (none, html, markdown). A value that is not a string is sanitized like any other.

raw?​

optional raw?: boolean | string[]

true skips the sanitization, a list names the keys (dotted paths) whose whole value is left untouched