(childNodes: readonly (string | AstNodes)[], separator = '')
| 95 | * @param separator delimiter between nodes |
| 96 | */ |
| 97 | export const text = (childNodes: readonly (string | AstNodes)[], separator = ''): string => |
| 98 | childNodes.map(child => typeof child === 'string' ? child : child.text()).join(separator); |
| 99 | |
| 100 | const names = {lt: '<', gt: '>', lbrack: '[', rbrack: ']', lbrace: '{', rbrace: '}', nbsp: ' ', amp: '&', quot: '"'}; |
| 101 |
no test coverage detected