Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/socketio/socket.io
/ cleanInput
Function
cleanInput
examples/chat/public/main.js:144–146 ·
view source on GitHub ↗
(input)
Source
from the content-addressed store, hash-verified
142
143
// Prevents input from having injected markup
144
const
cleanInput = (input) => {
145
return
$(
'<div/>'
).text(input).html();
146
}
147
148
// Updates the typing event
149
const
updateTyping = () => {
Callers
2
setUsername
Function · 0.70
sendMessage
Function · 0.70
Calls
1
$
Function · 0.50
Tested by
no test coverage detected