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

Function htmlEscape

gt/gt.ts:5–12  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

3import { safeGetReplyMessage } from "@utils/safeGetMessages";
4
5import { htmlEscape } from "@utils/htmlEscape";
6
7const gt = async (msg: Api.Message) => {
8 let translate: any;
9
10 try {
11 // 动态导入翻译库
12 const translateModule = await import("@vitalets/google-translate-api");
13 translate = translateModule.translate || translateModule.default;
14
15 if (!translate || typeof translate !== "function") {

Callers 1

gtFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected