echo example: handle received messages as text, not HTML (#563)

This commit is contained in:
Sry Back I 2020-03-19 06:53:02 -07:00 committed by GitHub
parent 015e196e21
commit 81cef7da56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -67,7 +67,7 @@ window.addEventListener("load", function(evt) {
var print = function(message) { var print = function(message) {
var d = document.createElement("div"); var d = document.createElement("div");
d.innerHTML = message; d.textContent = message;
output.appendChild(d); output.appendChild(d);
}; };