Skip to content

Commit

Permalink
Sm/revert-xml-parsing-entities (#1109)
Browse files Browse the repository at this point in the history
* fix: remove entity parsing setting

* test: skip entities parsing test
  • Loading branch information
mshanemc authored Sep 10, 2023
1 parent c13ad2f commit 5ca045b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/convert/streams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,6 @@ export class JsToXml extends Readable {
indentBy: ' ',
ignoreAttributes: false,
cdataPropName: '__cdata',
processEntities: false,
});

const builtXml = String(builder.build(this.xmlObject));
Expand Down
2 changes: 1 addition & 1 deletion test/convert/streams.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ describe('Streams', () => {
expect(jsToXml.read().toString()).to.be.equal(expectedBody);
});

it('should transform js with html encoding to xml', () => {
it.skip('should transform js with html encoding to xml', () => {
const xmlObj = {
TestType: {
[XML_NS_KEY]: XML_NS_URL,
Expand Down

0 comments on commit 5ca045b

Please sign in to comment.