MCPcopy
hub / github.com/socketio/socket.io / cleanInput

Function cleanInput

examples/cluster-traefik/server/public/main.js:148–150  ·  view source on GitHub ↗
(input)

Source from the content-addressed store, hash-verified

146
147 // Prevents input from having injected markup
148 function cleanInput (input) {
149 return $('<div/>').text(input).text();
150 }
151
152 // Updates the typing event
153 function updateTyping () {

Callers 2

setUsernameFunction · 0.70
sendMessageFunction · 0.70

Calls 1

$Function · 0.50

Tested by

no test coverage detected