From d9790b707a6d5d105c6521ecce9fdea990d7357f Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Sat, 6 Jul 2024 04:11:32 -0400 Subject: [PATCH] Fix style list breakage if style name contains HTML special characters https://forums.zotero.org/discussion/115761/z7-beta-document-settings-do-not-show-full-list-of-styles --- chrome/content/zotero/elements/styleConfigurator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chrome/content/zotero/elements/styleConfigurator.js b/chrome/content/zotero/elements/styleConfigurator.js index 41c88991e9..5a45affd02 100644 --- a/chrome/content/zotero/elements/styleConfigurator.js +++ b/chrome/content/zotero/elements/styleConfigurator.js @@ -64,7 +64,7 @@ .replace(/^American Sociological Association/, "American Sociological Association (ASA)"); styleListEl.appendChild(MozXULElement.parseXULToFragment(` - ${label} + ${Zotero.Utilities.htmlSpecialChars(label)} `)); }); this.value = this.getAttribute('value');