UNPKG

293 BJavaScriptView Raw
1'use strict';
2/**
3 * get-inner-xml module
4 * @module get-inner-xml
5 * @see module:index
6 */
7const lang = require('zero-lang');
8const xml = require('./xml');
9
10module.exports = node => {
11 const children = node.childNodes;
12 return lang.map(children, child => xml.serialize(child)).join('');
13};