[autocomplete] set innerText rather than HTML to avoid need for HTML parsing

This commit is contained in:
Shish 2023-12-29 10:47:51 +00:00
parent 81f68f1e90
commit 05d137cd6d

View file

@ -96,7 +96,7 @@ function renderCompletions(element) {
Object.keys(completions).forEach((key, i) => {
let value = completions[key];
let li = document.createElement('li');
li.innerHTML = key + ' (' + value + ')';
li.innerText = key + ' (' + value + ')';
if(i === selected_completion) {
li.className = 'selected';
}