diff --git a/examples/chat/public/main.js b/examples/chat/public/main.js index dc1721be99..83d142825a 100644 --- a/examples/chat/public/main.js +++ b/examples/chat/public/main.js @@ -146,7 +146,7 @@ $(function() { // Prevents input from having injected markup function cleanInput (input) { - return $('
').text(input).text(); + return $('').text(input).html(); } // Updates the typing event