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

Method escapeHtml

outdated/gemini/gemini.ts:155–162  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

153 }
154
155 static escapeHtml(text: string): string {
156 return text
157 .replace(/&/g, '&')
158 .replace(/</g, '<')
159 .replace(/>/g, '>')
160 .replace(/"/g, '&quot;')
161 .replace(/'/g, '&#39;');
162 }
163
164 static sanitizeHtmlForTelegraph(htmlContent: string): string {
165 const allowedTags = new Set([

Callers 6

markdownToHtmlFunction · 0.80
handleImageFunction · 0.80
processAudioGenerationFunction · 0.80
handleContextShowFunction · 0.80
handleTelegraphFunction · 0.80
handlePromptFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected