sanitizeInputWith
Function: sanitizeInputWith()
sanitizeInputWith<
T>(value,options):Promise<T>
Defined in: packages/core/src/contexts/sanitize.ts:390
Sanitize every string of a parsed JSON value, with the given sanitize-html options as they are
The value is not modified: a sanitized copy is returned, without the __proto__, constructor and prototype
keys.
Type Parameters
T
T = any
Parameters
value
T
the parsed JSON value
options
the sanitize-html options, and the paths sanitized another way
Returns
Promise<T>
the sanitized value
Throws
SanitizerUnavailable when a text is Markdown and micromark is not installed