Permalink
Browse files

A fixing esc NOT = escape

  • Loading branch information...
DanBUK committed Feb 6, 2011
1 parent dd2d304 commit 17526da5a7a9c8eb52e6a4247addd3cd2974bcd1
Showing with 1 addition and 1 deletion.
  1. +1 −1 public/index.html
View
@@ -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:

0 comments on commit 17526da

Please sign in to comment.