diff --git a/src/lib/components/CandidateBox.ts b/src/lib/components/CandidateBox.ts index 2e100bb7..9067ff3b 100644 --- a/src/lib/components/CandidateBox.ts +++ b/src/lib/components/CandidateBox.ts @@ -85,7 +85,7 @@ class CandidateBox { }; candidateListLIElement.className = "hg-candidate-box-list-item"; - candidateListLIElement.textContent = this.options.display?.[candidateListItem] || candidateListItem; + candidateListLIElement.innerHTML = this.options.display?.[candidateListItem] || candidateListItem; candidateListLIElement.onclick = (e = getMouseEvent()) => onItemSelected(candidateListItem, e);