summaryrefslogtreecommitdiff
path: root/public/js/lib/views/room/chat.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/js/lib/views/room/chat.js')
-rw-r--r--public/js/lib/views/room/chat.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/public/js/lib/views/room/chat.js b/public/js/lib/views/room/chat.js
index 222522f..0932e47 100644
--- a/public/js/lib/views/room/chat.js
+++ b/public/js/lib/views/room/chat.js
@@ -24,8 +24,8 @@ var ChatView = View.extend({
this.seen[key] = true
var $el = $( this.template )
- $el.find(".nick").html(msg.nick)
- $el.find(".msg").html(msg.msg)
+ $el.find(".nick").html(sanitize(msg.nick))
+ $el.find(".msg").html(sanitizeHTML(msg.msg))
this.$messages.append($el)
if (! this.scrolled) {
this.scrollToBottom()
@@ -34,7 +34,6 @@ var ChatView = View.extend({
send: function(e){
e && e.preventDefault()
- console.log("hi")
var val = this.$msg.sanitize()
this.$msg.focus()
if (! val) return