Skip to content

escape "&" caractere #37

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. xml = "<out><test>foo & bar</test></out>";
2. json = x2js.xml_str2json(xml);

What is the expected output? 
json = {"out":{"test":"foo & bar"}}

What do you see instead?
json = null

What version of the product are you using? On what operating system and
browser version?
I'm on Firefox and It doesn't work on https://x2js.googlecode.com/hg/demo.html
I think this is the lastest version ...

Is there a fix or something to do ?
I can't modify xml that comes from the server.

Modifications have to be done on the xml or the plugin ?

Thanks in advance!




Original issue reported on code.google.com by Benc...@gmail.com on 2 Mar 2015 at 12:37

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions