(node: any)
| 81 | |
| 82 | // 用于节点序列化 |
| 83 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected