diff --git a/ui/modules/utils.ts b/ui/modules/utils.ts index 37a4dc1fde..fb592fd9c6 100644 --- a/ui/modules/utils.ts +++ b/ui/modules/utils.ts @@ -144,8 +144,8 @@ export function addDropDownEntries(target, items, isHeader = false) { items.forEach((value) => { const li = document.createElement('li'); li.innerHTML = isHeader ? - `` : - `${value}`; + `` : + `${sanitizeHTML(value)}`; target.appendChild(li); }); }