I\'m building a simple little chat with Node.js and socket.io
When a user types his message, it is broadcasted to all other users.
Server sends the message :
Don't use .html() because that's basically eval on steroids - capable of causing the interpretation of a good variety of languages.
.html()
eval
Text is always interpreted as text though:
$('#messages').append($("", { text: data.message })); 0 讨论(0) 查看其它2个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复