MCPcopy Create free account
hub / github.com/FlowiseAI/Flowise / unescapeXmlEntities

Function unescapeXmlEntities

packages/ui/src/utils/xmlTagUtils.js:76–84  ·  view source on GitHub ↗
(json)

Source from the content-addressed store, hash-verified

74 * @returns {object} The same JSON with decoded entities in text nodes
75 */
76export function unescapeXmlEntities(json) {
77 if (json.text) {
78 json.text = unescapeXmlTags(json.text)
79 }
80 if (json.content) {
81 json.content.forEach(unescapeXmlEntities)
82 }
83 return json
84}
85
86/**
87 * Unescape all entity-escaped XML/HTML tags after markdown serialization.

Callers 4

simulateEditorCycleFunction · 0.90
RichInputFunction · 0.90
ExpandRichInputDialogFunction · 0.90

Calls 1

unescapeXmlTagsFunction · 0.70

Tested by 1

simulateEditorCycleFunction · 0.72