@v4fire/core
Version:
V4Fire core library
20 lines (17 loc) • 379 B
text/typescript
/*!
* V4Fire Core
* https://github.com/V4Fire/Core
*
* Released under the MIT license
* https://github.com/V4Fire/Core/blob/master/LICENSE
*/
let
xmlSerializer;
/**
* Serializes the specified XML node to a string
* @param node
*/
export function serialize(node: Node): string {
xmlSerializer ??= new XMLSerializer();
return xmlSerializer.serializeToString(node);
}