MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / escapeHtml

Function escapeHtml

cli/src/utils/chatgpt-oauth.ts:119–121  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

117}
118
119function escapeHtml(s: string): string {
120 return s.replace(/&/g, '&amp;').replace(/</g, '&lt;').replace(/>/g, '&gt;').replace(/"/g, '&quot;').replace(/'/g, '&#39;')
121}
122
123function callbackPageHtml(success: boolean, errorMessage?: string): string {
124 const title = success ? 'Connected — Codebuff' : 'Connection Failed — Codebuff'

Callers 1

callbackPageHtmlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected