Skip to content

Commit fc09ed5

Browse files
input sanitization (#862)
1 parent d4c4537 commit fc09ed5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

home.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
if (messages.length > MESSAGES_MAX_COUNT) {
4545
messages.shift();
4646
}
47-
log.innerHTML = messages.join('<br><br>');
47+
log.textContent = messages.join('<br><br>');
4848
if (autoscroll.checked) {
4949
log.scrollTop = log.scrollHeight - log.clientHeight;
5050
}

0 commit comments

Comments
 (0)