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

Function htmlEscape

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

Source from the content-addressed store, hash-verified

10
11import { htmlEscape } from "@utils/htmlEscape";
12
13// HTML转义
14// 消息分割与发送
15const MAX_MESSAGE_LENGTH = 4096;
16function splitMessage(text: string): string[] {
17 if (text.length <= MAX_MESSAGE_LENGTH) return [text];
18 const parts: string[] = [];
19 let currentPart = "";

Callers 1

Ox0PluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected