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

Function htmlEscape

service/service.ts:150–161  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

148 }
149}
150
151// HTML转义函数
152// 将系统状态信息翻译成中文
153function translateToChinese(text: string): string {
154 // 逐行处理
155 const lines = text.split("\n");
156 const translatedLines: string[] = [];
157
158 for (const line of lines) {
159 let translatedLine = line;
160
161 // 首先处理时间格式
162 if (line.includes("Started:") || line.includes("启动时间:")) {
163 // 提取时间部分并格式化
164 const timeMatch = line.match(/(启动时间:|Started:)\s*(.+)/);

Callers 1

handleServiceRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected