I am working on a project and I need to check for HTML special characters for text input boxes.

What is the best way to go about that? There doesn't seem to be a function to call like PHP has. I thought about using a RegEx. Would there be a better way?

I have no code to post as I am just trying to get ideas.