sanitizeString
Function: sanitizeString()
sanitizeString(
value,mode?):Promise<string>
Defined in: packages/core/src/contexts/sanitize.ts:435
Sanitize one text with a mode, exactly as the input sanitization does for a text at a path of that mode
For a value that is compared with stored texts rather than stored itself: the literal of a query.
Parameters
value
string
the text
mode?
string
its mode, undefined for the default
Returns
Promise<string>
the sanitized text
Throws
SanitizerUnavailable when the mode is markdown and micromark is not installed