I'm testing my chat application and I typed in <b>test</b>
and message is coming out as bold.
I have noticed you can't do this in Facebook's chat for example.
What is the best way to handle users attempting to perform this html-injection?
EDIT: I am using node.js for my server side, plain js and html, css. Please note that I do not want to REMOVE the html text that the user has typed. I just want it to not be rendered. For example, in Facebooks chat, if you type <b>test</b>
- the tags and the text will appear but it won't be bold.