abdolence / x2js

x2js - XML to JSON and back for JavaScript
1.01k stars 492 forks source link

json2xml_str not parsing single quotes and some other characters. #60

Open vishnuvardhan-maliki opened 7 years ago

vishnuvardhan-maliki commented 7 years ago

When trying to convert from a Json Object having single quotes, slashes, colons etc to xml, the output prints the ascii values instead of the symbols.

For Example:

Lets say a part of my Json Object looks some thing like this "Object { value : " id='480' name='USEclipse' status='1'}"

Then the XML generated would have the values as id='480' name=&#x27USEclipse'