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

Function htmlEscape

dbdj/dbdj.ts:79–86  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

77 };
78}
79function htmlEscape(text: string): string {
80 return String(text)
81 .replace(/&/g, "&")
82 .replace(/</g, "&lt;")
83 .replace(/>/g, "&gt;")
84 .replace(/"/g, "&quot;")
85 .replace(/'/g, "&#x27;");
86}
87
88class DbdjPlugin extends Plugin {
89 description: string = `点兵点将\n<code>${mainPrefix}dbdj 消息数 人数 文案</code> - 从最近的消息中随机抽取指定人数的用户`;

Callers 2

formatEntityFunction · 0.70
DbdjPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected