I am working on a form with the possiblity for the user to use illegal/special characters in the string that is to be submitted to the database. I want to escape/negate thes
This is not a problem you want to tackle on your own. There are libraries out there to do this for you, such as the HTML Purifier.