mirror of
https://github.com/socketio/socket.io.git
synced 2026-01-10 23:48:02 -05:00
[docs] Actually prevent input from having injected markup in chat example (#2987)
This commit is contained in:
committed by
Damien Arrachequesne
parent
3684d590f5
commit
3386e155a8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user