MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / decodeEntities

Function decodeEntities

src/tools/web/web-fetch.ts:141–149  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

139}
140
141function decodeEntities(s: string): string {
142 return s
143 .replace(/ /g, ' ')
144 .replace(/&/g, '&')
145 .replace(/&lt;/g, '<')
146 .replace(/&gt;/g, '>')
147 .replace(/&quot;/g, '"')
148 .replace(/&#39;/g, "'");
149}
150
151/** Store the full clean text so an omitted middle is recoverable via read_file. Best-effort. */
152async function storeFullText(url: string, text: string): Promise<string | null> {

Callers 1

htmlToMarkdownFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected