From 810d084e218ed367329797cc66f77c75b08276a4 Mon Sep 17 00:00:00 2001 From: Francisco Hodge Date: Mon, 9 Jan 2023 16:45:05 -0500 Subject: [PATCH] Allow HTML in CandidateBox item. Fixes #1835 --- src/lib/components/CandidateBox.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);