Fix javascript/DOM quotting bug

This commit is contained in:
Emmanuel Engelhart 2021-12-19 11:26:08 +01:00
parent 90910c5cab
commit 7f6a6055a9
No known key found for this signature in database
GPG Key ID: 120B30D020B553D3
1 changed files with 2 additions and 2 deletions

View File

@ -229,7 +229,7 @@
data.querySelectorAll('entry').forEach(entry => {
const title = getInnerHtml(entry, 'title');
const value = getInnerHtml(entry, valueEntryNode);
optionStr += `<option value='${value}">${humanFriendlyTitle(title)}</option>`;
optionStr += `<option value="${value}">${humanFriendlyTitle(title)}</option>`;
});
document.querySelector(nodeQuery).innerHTML += optionStr;
});