[autocomplete] set innerText rather than HTML to avoid need for HTML parsing
This commit is contained in:
parent
81f68f1e90
commit
05d137cd6d
1 changed files with 1 additions and 1 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Reference in a new issue