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

Function htmlEscape

codex_image/codex_image.ts:38–49  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

36
37const sleep = (ms: number): Promise<void> =>
38 new Promise((resolve) => setTimeout(resolve, ms));
39
40const expandableBlock = (input: string): string =>
41 `<blockquote expandable>${htmlEscape(input)}</blockquote>`;
42
43async function getDb(): Promise<Low<CodexImageConfig>> {
44 if (!dbPromise) {
45 dbPromise = JSONFilePreset<CodexImageConfig>(configPath, {
46 accessToken: "",
47 });
48 }
49 const db = await dbPromise;
50 db.data ||= { accessToken: "" };
51 return db;
52}

Callers 2

expandableBlockFunction · 0.70
handleCximgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected