Skip to main content

makeMarkdownSafe

Makes a string markdown safe so that all possible markdown markup is ignored.

Signature

makeMarkdownSafe(input: string, features?: MarkdownFeatures): string

Parameters

NameTypeOptionalDescription
inputstringNoSpecifies the input to sanitize.
featuresMarkdownFeaturesYesSpecifies the markdown features to remove (default is Formatting and InlineCode).

Return value

Returns the sanitized markdown string.