Skip to content

Commit

Permalink
[docs] Actually prevent input from having injected markup in chat exa…
Browse files Browse the repository at this point in the history
…mple (socketio#2987)
  • Loading branch information
VincentGau authored and darrachequesne committed Aug 27, 2017
1 parent 06ded7e commit 1139de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/chat/public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ $(function() {

// Prevents input from having injected markup
function cleanInput (input) {
return $('<div/>').text(input).text();
return $('<div/>').text(input).html();
}

// Updates the typing event
Expand Down

0 comments on commit 1139de8

Please sign in to comment.