aboutsummaryrefslogtreecommitdiff
path: root/profile/public/user.js
diff options
context:
space:
mode:
Diffstat (limited to 'profile/public/user.js')
-rw-r--r--profile/public/user.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/profile/public/user.js b/profile/public/user.js
index 39d6713..9a55682 100644
--- a/profile/public/user.js
+++ b/profile/public/user.js
@@ -13,7 +13,7 @@ function addUser(userData) {
if (!questions.hasOwnProperty(questionID)) continue;
const question = questions[questionID];
const div = document.createElement("div");
- div.innerHTML = `<b>${question.question}</b> <span>${question.answer || ""}</span>`;
+ div.innerHTML = `<b>${question.question.replace(/</g, "&lt;").replace(/>/g, "&gt;")}</b> <span>${question.answer.replace(/</g, "&lt;").replace(/>/g, "&gt;") || ""}</span>`;
divs.push(div);
}
const h1 = document.createElement("h1");