Skip to content

'&' not escaped in attribute #28

@yzhou88

Description

@yzhou88

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions