Permalink
Browse files

A fix?

  • Loading branch information...
1 parent 14db114 commit dd2d304fb779cdeb9ba2ae7b97232962ceda9a6e @DanBUK committed Feb 6, 2011
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 = "<b>" + obj.from + "</b>: " + obj.message;
+ p.innerHTML = "<p><b>" + esc(obj.from) + "</b>: " + esc(obj.message) + "</p>";
chatBody.appendChild(p);
break;
default:

0 comments on commit dd2d304

Please sign in to comment.