mirror of https://github.com/gorilla/websocket.git
echo example: handle received messages as text, not HTML (#563)
This commit is contained in:
parent
015e196e21
commit
81cef7da56
|
@ -67,7 +67,7 @@ window.addEventListener("load", function(evt) {
|
|||
|
||||
var print = function(message) {
|
||||
var d = document.createElement("div");
|
||||
d.innerHTML = message;
|
||||
d.textContent = message;
|
||||
output.appendChild(d);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue