MCPcopy Create free account
hub / github.com/Bistutu/FluentRead / stringifyNode

Function stringifyNode

entrypoints/utils/cache.ts:83–88  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

81
82// 用于节点序列化
83export function stringifyNode(node: any): string {
84 const serializer = new XMLSerializer();
85 let outerHTML = serializer.serializeToString(node);
86 // 移除多余的空白符
87 return outerHTML.replace(/\s{2,}/g, ' ').trim();
88}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected