Fix for #48 (various 0-depth issues, bad "is output start" logic)
Version 2.0.0 (breaking)
New: automatic entity escaping for &, <, and > characters. In addition, quotes " in attributes are also escaped (see #41). Prior to this, users had to provide their own filter manually. Note that jstoxml makes an effort not to escape entities that appear to have already been encoded, to prevent double-encoding issues.
E.g. toXML({ foo: '1 < 2 & 2 > 1' }); // -> "<foo>1 < 2 & 2 > 1</foo>"
To restore the default behavior from v1.x.x, simply pass in false to filter and attributesFilter options:
toXML({ foo: '1 < 2 & 2 > 1' }, { filter: false, attributesFilter: false }); // -> "<foo>1 < 2 & 2 > 1</foo>"
Version 1.6.9
fix for #40. Previously top-level objects and arrays were concatenated without proper line breaks.
Version 1.4.2
support for handling arrays of primitives, instead of simply concatenating #33