Skip to content

Commit

Permalink
sanitize an additional input which was still missing
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
  • Loading branch information
thjaeckle committed May 17, 2024
1 parent cce2e96 commit 9d1bac3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/modules/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ export function addDropDownEntries(target, items, isHeader = false) {
items.forEach((value) => {
const li = document.createElement('li');
li.innerHTML = isHeader ?
`<h6 class="dropdown-header">${value}</h6>` :
`<a class="dropdown-item" href="#">${value}</a>`;
`<h6 class="dropdown-header">${sanitizeHTML(value)}</h6>` :
`<a class="dropdown-item" href="#">${sanitizeHTML(value)}</a>`;
target.appendChild(li);
});
}
Expand Down

0 comments on commit 9d1bac3

Please # to comment.