Skip to content

Commit

Permalink
sanatize strings displayed in control page
Browse files Browse the repository at this point in the history
  • Loading branch information
ericpassmore committed Oct 30, 2024
1 parent f518d0a commit a2c6b4e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webcontent/control.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ <h3 id="control-meta-data-file">Control</h3>
// Select the <h3> child of the div with id="error-message"
const errorMessageH3 = document.querySelector("#error-message h3");
if (errorMessageH3) {
errorMessageH3.innerHTML = error;
errorMessageH3.textContent = error.replace(/[&<>'";]/g, '');
document.getElementById("error-message").style.display = "block";
}
} else if (success) {
// Select the <h3> child of the div with id="success-message"
const successMessageH3 = document.querySelector("#success-message h3");
if (successMessageH3) {
successMessageH3.innerHTML = success;
successMessageH3.textContent = success.replace(/[&<>'";]/g, '');;
document.getElementById("success-message").style.display = "block";
}
}
Expand Down

0 comments on commit a2c6b4e

Please sign in to comment.