MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / htmlEscape

Function htmlEscape

copy_sticker_set/copy_sticker_set.ts:10–17  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

8const prefixes = getPrefixes();
9const mainPrefix = prefixes[0];
10
11// HTML转义函数
12
13function timeoutAfter(ms: number, message: string, label: string): Promise<never> {
14 const lifecycle = tryGetCurrentGenerationContext();
15 if (lifecycle) {
16 return lifecycle.delay(ms, { label }).then(() => {
17 throw new Error(message);
18 });
19 }
20

Callers 1

handleCopyStickerSetMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected