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
This commit is contained in:
Dan Stillman 2024-07-06 04:11:32 -04:00
parent eeece86b4e
commit d9790b707a

View file

@ -64,7 +64,7 @@
.replace(/^American Sociological Association/, "American Sociological Association (ASA)");
styleListEl.appendChild(MozXULElement.parseXULToFragment(`
<richlistitem value="${value}">${label}</richlistitem>
<richlistitem value="${value}">${Zotero.Utilities.htmlSpecialChars(label)}</richlistitem>
`));
});
this.value = this.getAttribute('value');