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:
parent
eeece86b4e
commit
d9790b707a
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue