mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-08 06:39:53 -04:00
Merge pull request #661 from kiwix/javascript_quotting_fix
Fix javascript/DOM quotting bug
This commit is contained in:
commit
a89924a23f
@ -229,7 +229,7 @@
|
|||||||
data.querySelectorAll('entry').forEach(entry => {
|
data.querySelectorAll('entry').forEach(entry => {
|
||||||
const title = getInnerHtml(entry, 'title');
|
const title = getInnerHtml(entry, 'title');
|
||||||
const value = getInnerHtml(entry, valueEntryNode);
|
const value = getInnerHtml(entry, valueEntryNode);
|
||||||
optionStr += `<option value='${value}">${humanFriendlyTitle(title)}</option>`;
|
optionStr += `<option value="${value}">${humanFriendlyTitle(title)}</option>`;
|
||||||
});
|
});
|
||||||
document.querySelector(nodeQuery).innerHTML += optionStr;
|
document.querySelector(nodeQuery).innerHTML += optionStr;
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user