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();