node-json2xml
node-json2xml copied to clipboard
'&' not escaped in attribute
Test code:
var json2xml = require("json2xml")
json2xml({ a: 1, attr: { b: 'a&b' } }, { attributes_key: 'attr' });
Result:
<a b=\"a&b\">1</a>
Where a&b should be: a&b