Skip to content

escapeMarkdown

escapeMarkdown(value): string

Defined in: packages/formatters/src/index.ts:144

Escapes the inline Discord markdown characters \ * _ ~ | >. It does not neutralise headings, lists or labellinks: pair it withallowedMentions` and never rely on it to sanitise untrusted text.

string

string