Possible Duplicate:
What's the best method for sanitizing user input with PHP?
I'm using TinyMCE to allow uses to edit a small portion of a web page.
This field is saved to a database.
Is there a regular expression I can use to clean the incoming HTML code so it avoids any XSS/NULL/DROP TABLES kind of attacks?
I've done this on single line inputs text/numbers etc, but not sure how to go about this when receiving an HTML string.