mirror of https://github.com/kiwix/libkiwix.git
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…
Reference in New Issue