From 96c8cb86c37f65d56ec7b8907540b239f171940e Mon Sep 17 00:00:00 2001 From: Marcel Klehr Date: Sat, 6 Jul 2024 10:54:16 +0200 Subject: [PATCH] fix(Xbel): Don't attempt to parse numbers fixes #1657 Signed-off-by: Marcel Klehr --- src/lib/serializers/Xbel.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/serializers/Xbel.ts b/src/lib/serializers/Xbel.ts index fffd7dd24b..cdef60745d 100644 --- a/src/lib/serializers/Xbel.ts +++ b/src/lib/serializers/Xbel.ts @@ -10,7 +10,12 @@ class XbelSerializer implements Serializer { } deserialize(xbel: string) { - const parser = new XMLParser({preserveOrder: true, ignorePiTags: true, ignoreAttributes: false}) + const parser = new XMLParser({ + preserveOrder: true, + ignorePiTags: true, + ignoreAttributes: false, + parseTagValue: true, + }) const xmlObj = parser.parse(xbel) if (!Array.isArray(xmlObj[0].xbel)) {