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

Function htmlEscape

convert/convert.ts:21–25  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

19const toSimplified = Converter({ from: "tw", to: "cn" });
20
21const htmlEscape = (text: string): string =>
22 text.replace(/[&<>"']/g, (m) => ({
23 "&": "&amp;", "<": "&lt;", ">": "&gt;",
24 '"': "&quot;", "'": "&#x27;",
25 }[m] || m));
26
27// --- Gemini AI Configuration & Client ---
28const dbDir = path.join(process.cwd(), "assets", "convert");

Callers 2

ConvertPluginClass · 0.70
handleVideoConversionMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected