MCPcopy Create free account
hub / github.com/ResearAI/AutoFigure / decodeHtmlEntities

Function decodeHtmlEntities

frontend/lib/utils.ts:692–696  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

690
691 // 3. Decode HTML entities (using a minimal function)
692 function decodeHtmlEntities(str: string) {
693 const textarea = document.createElement("textarea") // Use built-in element
694 textarea.innerHTML = str
695 return textarea.value
696 }
697 const xmlContent = decodeHtmlEntities(encodedContent)
698
699 // 4. Parse the XML content

Callers 1

extractDiagramXMLFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected