From 8b360805875d5196ca560d6816d192aa6a6365bb Mon Sep 17 00:00:00 2001 From: Leandro Facchinetti Date: Tue, 31 Mar 2020 16:29:16 -0400 Subject: [PATCH] Remove too strict check --- src/check.ts | 2 +- src/index.tsx | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/check.ts b/src/check.ts index 9a9d509..1a82570 100644 --- a/src/check.ts +++ b/src/check.ts @@ -7,7 +7,7 @@ for (const feed of fs try { const xml: any = xmlbuilder2.convert( fs.readFileSync(`static/feeds/${feed}`, "utf8"), - { format: "object", wellFormed: true } + { format: "object" } ); if (xml?.feed?.updated === undefined) throw new Error("Can’t find xml.feed.updated"); diff --git a/src/index.tsx b/src/index.tsx index f7a32d7..b98ecfa 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -298,7 +298,6 @@ function renderHTML(component: React.ReactElement): string { function renderXML(xml: object): string { return xmlbuilder2.convert({ invalidCharReplacement: "" }, xml, { format: "xml", - wellFormed: true, noDoubleEncoding: true, prettyPrint: true }); @@ -307,7 +306,6 @@ function renderXML(xml: object): string { function parseXML(xml: string): any { return xmlbuilder2.convert({ invalidCharReplacement: "" }, xml, { format: "object", - wellFormed: true, noDoubleEncoding: true }); }