New here... I've got a small problem that I need some help with and have been unsuccessful on other forums. I'm hoping you can point me in the right direction.
What I've got is a content control that I wrote for my clients using php/mysql. I have a function that checks the inserted data and strips out php and unwanted html. The problem is that's too strict. For example if someone makes an error with an acceptable tag like:
<a href=""... not closing it. The function will strip EVERYTHING from that point down. Is there anyway to make the function below more dummy proof?
Thanks for your time!!