You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a custom property is added to Object's prototype, it is included in generated XML. It shouldn't happen because in some cases users can't control pollution of Object / Array prototypes.
Input
{a: 1}
Code
const{ XMLBuilder }=require("fast-xml-parser");// emulate pollution of Object's prototypeObject.prototype.something='strange';constbuilder=newXMLBuilder();constxml=builder.build({a: 1});console.log(xml);
Output
<a>1</a><something>strange</something>
Expected output
<a>1</a>
Would you like to work on this issue?
Yes
No
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
The text was updated successfully, but these errors were encountered:
We're glad you find this project helpful. We'll try to address this issue ASAP. You can vist https://solothought.com to know recent features. Don't forget to star this repo.
Description
If a custom property is added to Object's prototype, it is included in generated XML. It shouldn't happen because in some cases users can't control pollution of Object / Array prototypes.
Input
{a: 1}
Code
Output
Expected output
Would you like to work on this issue?
Bookmark this repository for further updates. Visit SoloThought to know about recent features.
The text was updated successfully, but these errors were encountered: