fix: change innerHTML to trustedHTML

This commit is contained in:
Gabe
2025-10-14 23:36:28 +08:00
parent 2de10364f3
commit 9cdcf616f7
2 changed files with 24 additions and 2 deletions

View File

@@ -127,7 +127,7 @@ function showErr(message) {
});
const closeButton = document.createElement("span");
closeButton.innerHTML = "×";
closeButton.textContent = "×";
Object.assign(closeButton.style, {
position: "absolute",