From cf8f3d050901acfc67ce15e10900bedf784388e1 Mon Sep 17 00:00:00 2001 From: Heikki Hulkko Date: Thu, 6 Nov 2025 16:38:52 +0200 Subject: [PATCH] Add missing XML encoding to company attribute --- demos/modules/enums.mjs | 2 +- src/gen-xml.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/modules/enums.mjs b/demos/modules/enums.mjs index 3309f7e7..6531429e 100644 --- a/demos/modules/enums.mjs +++ b/demos/modules/enums.mjs @@ -8,7 +8,7 @@ export const TESTMODE = typeof window !== "undefined" && window.location && wind export const COMPRESS = true; // TEST: `compression` write prop // CONST -export const CUST_NAME = "S.T.A.R. Laboratories"; +export const CUST_NAME = "S.T.A.R. Laboratories & co"; export const USER_NAME = "Barry Allen"; export const ARRSTRBITES = [130]; export const CHARSPERLINE = 130; // "Open Sans", 13px, 900px-colW = ~19 words/line ~130 chars/line diff --git a/src/gen-xml.ts b/src/gen-xml.ts index f1e3ecd9..8f11d611 100644 --- a/src/gen-xml.ts +++ b/src/gen-xml.ts @@ -1495,7 +1495,7 @@ export function makeXmlApp (slides: PresSlide[], company: string): string { ${slides.map((_slideObj, idx) => `Slide ${idx + 1}`).join('')} - ${company} + ${encodeXmlEntities(company)} false false false