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

Function htmlEscape

openlist/openlist.ts:23–30  ·  view source on GitHub ↗
(text: unknown)

Source from the content-addressed store, hash-verified

21
22const execAsync = promisify(exec);
23const execFileAsync = promisify(execFile);
24const GH_BASE_DOWNLOAD = "https://github.com/OpenListTeam/OpenList/releases/latest/download";
25
26const codeTag = (text: unknown): string => `<code>${htmlEscape(text)}</code>`;
27const preTag = (text: unknown): string => `<pre>${htmlEscape(text)}</pre>`;
28
29/**
30 * 将 Telegram 提供的文件名压缩为一个安全路径段。
31 * 先统一 Windows/Unix 分隔符再取 basename,并拒绝特殊点目录。
32 */
33function sanitizeMediaFileName(input: unknown): string {

Callers 8

codeTagFunction · 0.70
preTagFunction · 0.70
handleInstallMethod · 0.70
handleBackupMethod · 0.70
handleRestoreMethod · 0.70
handleAdminMethod · 0.70
handleSaveMethod · 0.70
handleStatusMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected