Skip to content

Commit

Permalink
input sanitization
Browse files Browse the repository at this point in the history
  • Loading branch information
alessio-perugini committed Nov 28, 2023
1 parent d4c4537 commit 6903bad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
if (messages.length > MESSAGES_MAX_COUNT) {
messages.shift();
}
log.innerHTML = messages.join('<br><br>');
log.textContent = messages.join('<br><br>');
if (autoscroll.checked) {
log.scrollTop = log.scrollHeight - log.clientHeight;
}
Expand Down

0 comments on commit 6903bad

Please sign in to comment.