diff --git a/public/index.html b/public/index.html index 1380202..545894b 100644 --- a/public/index.html +++ b/public/index.html @@ -76,7 +76,7 @@ switch (obj.messagetype) { case "message": var p = document.createElement('p'); - p.innerHTML = "

" + esc(obj.from) + ": " + esc(obj.message) + "

"; + p.innerHTML = "

" + escape(obj.from) + ": " + escape(obj.message) + "

"; chatBody.appendChild(p); break; default: