From 8c9ba66705ac4f40c24710802e16d8b3609db566 Mon Sep 17 00:00:00 2001 From: Karma Riuk Date: Wed, 14 May 2025 22:07:13 +0200 Subject: [PATCH] properly showing the proposed comment --- public/js/index.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/public/js/index.js b/public/js/index.js index 94d4515..823596d 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -77,7 +77,10 @@ document.getElementById("upload-btn").onclick = async () => { const commentCell = row.insertCell(); const scoreCell = row.insertCell(); - commentCell.innerHTML = `${info["proposed_comment"]}`; + const span = document.createElement("span"); + span.className = "comment-cell"; + span.textContent = info["proposed_comment"]; + commentCell.appendChild(span); scoreCell.textContent = info["max_bleu_score"].toFixed(2); } else { const compiledCell = row.insertCell();