Skip to content

Commit 3386e15

Browse files
VincentGaudarrachequesne
authored andcommittedAug 27, 2017
[docs] Actually prevent input from having injected markup in chat example (socketio#2987)
1 parent 3684d59 commit 3386e15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎examples/chat/public/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ $(function() {
146146

147147
// Prevents input from having injected markup
148148
function cleanInput (input) {
149-
return $('<div/>').text(input).text();
149+
return $('<div/>').text(input).html();
150150
}
151151

152152
// Updates the typing event

0 commit comments

Comments
 (0)