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

Function htmlEscape

admin_board/admin_board.ts:120–132  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

118let avgCacheDbPromise:
119 | Promise<Awaited<ReturnType<typeof JSONFilePreset<AvgCacheDB>>>>
120 | undefined;
121
122function getTextAfterTokens(text: string, count: number): string {
123 if (count <= 0) return text.trim();
124 return text
125 .replace(
126 new RegExp(
127 `^\\S+${Array(count - 1)
128 .fill("\\s+\\S+")
129 .join("")}`,
130 ),
131 "",
132 )
133 .trim();
134}
135

Callers 10

admin_board.tsFile · 0.70
buildTargetDisplayFunction · 0.70
buildUserDisplayFunction · 0.70
buildUserDisplayFromIdFunction · 0.70
buildCompactSortLineFunction · 0.70
collectAdminStatsFunction · 0.70
handleSeatActionFunction · 0.70
handleTrimActionFunction · 0.70
AdminBoardPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected