Function: maskSpoilers() ​
ts
function maskSpoilers(text, mask?): string;Defined in: messagePreview.ts:13
Plain-text previews (notifications, toasts) with each spoiler replaced, so they never show what the sender chose to hide.
Parameters ​
| Parameter | Type | Default value |
|---|---|---|
text | string | undefined |
mask? | string | "[spoiler]" |
Returns ​
string