Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit dc82eca

Browse files
author
andris9
committed
Join text data when several blocks are used (ie. with CDATA blocks that have ] or [ characters inside)
1 parent 4b3cdab commit dc82eca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/xml2json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ function text(data) {
3939
if (!data.length) {
4040
return;
4141
}
42-
currentObject['$t'] = data;
42+
currentObject['$t'] = (currentObject['$t'] || "") + data;
4343
}
4444

4545
function endElement(name) {

0 commit comments

Comments
 (0)