Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

A fixing esc NOT = escape

  • Loading branch information...
commit 17526da5a7a9c8eb52e6a4247addd3cd2974bcd1 1 parent dd2d304
@DanBUK authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  public/index.html
View
2  public/index.html
@@ -76,7 +76,7 @@
switch (obj.messagetype) {
case "message":
var p = document.createElement('p');
- p.innerHTML = "<p><b>" + esc(obj.from) + "</b>: " + esc(obj.message) + "</p>";
+ p.innerHTML = "<p><b>" + escape(obj.from) + "</b>: " + escape(obj.message) + "</p>";
chatBody.appendChild(p);
break;
default:
Please sign in to comment.
Something went wrong with that request. Please try again.