diff options
author | LarsVomMars | 2021-01-29 11:31:24 +0100 |
---|---|---|
committer | LarsVomMars | 2021-01-29 11:31:24 +0100 |
commit | 5eb14d6d09638c9ba3f034a019a8cd54c512b238 (patch) | |
tree | 5031371019c62054aabccc79ccc24561d85c9998 /profile/public/user.js | |
parent | dcf2ba4afc2eec720d6ae6df4be1b290cc91563c (diff) |
Some fixes
Diffstat (limited to 'profile/public/user.js')
-rw-r--r-- | profile/public/user.js | 2 |
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, "<").replace(/>/g, ">")}</b> <span>${question.answer.replace(/</g, "<").replace(/>/g, ">") || ""}</span>`; divs.push(div); } const h1 = document.createElement("h1"); |