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

Function escapeHtml

deepwiki/deepwiki.ts:60–61  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

58const MAX_TURNS_PER_TAG = 50;
59
60const escapeHtml = (text: string): string =>
61 text.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;");
62
63const getMessageText = (m?: Api.Message | null): string => {
64 if (!m) return "";

Callers 5

setCurrentMethod · 0.70
buildQAHtmlFunction · 0.70
formatErrorMethod · 0.70
sendAnswerOrTelegraphMethod · 0.70
DeepWikiPluginClass · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected