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