I was wondering if anyone knows somewhere I can grab a function for cleaning out a user's input really nicely. It'd have to be very featured. I want to allow the user to use some HTML tags, but not all. For example, bolds, underlines and images are great, but I wouldn't want to user to be using embed tags or PHP tags. I'd want them to be able to use table tags and list tags, but only if they close them. Or maybe the function could close their tags for them at the end of the message. Anyways, it sounds pretty extensive. I've seen forums that do something like this. I'm just hoping it's open source. Does anyone know where I might be able to find something like this?