Skip to content

1681-engine / ui / escapeRichText

Function: escapeRichText() ​

ts
function escapeRichText(text): string;

Defined in: src/ui/rich/richMarkup.ts:53

Makes text safe to put inside markup: every [ doubled, so a player named [b] prints as typed.

Parameters ​

ParameterType
textstring

Returns ​

string

Released under the MIT License.