makeMarkdownSafe
Makes a string markdown safe so that all possible markdown markup is ignored.
Signature
makeMarkdownSafe(input: string, features?: MarkdownFeatures): string
Parameters
Name | Type | Optional | Description |
---|---|---|---|
input | string | No | Specifies the input to sanitize. |
features | MarkdownFeatures | Yes | Specifies the markdown features to remove (default is Formatting and InlineCode ). |
Return value
Returns the sanitized markdown string.