I'm adding a comment form to my blog, but I don't want people to be able to break my blog by entering html or php or any other code. So I need to know if there is a function that converts special characters such as < or > or / etc. into their form that's like &whatever;
I hope that made sense, I don't know the proper words for some of the things I was talking about so that might have been hard to follow.
I guess if I really have to I can just do a str_replace on < and > but I'd like to know if there's a more effective way.