Possible Duplicate:
What are the best practices for avoiding xss attacks in a PHP site
Is this enough to protect me from XSS
$title = preg_replace('/<[^>]*>/', '', $titleGet);
I use this before insert into DB
Possible Duplicate:
What are the best practices for avoiding xss attacks in a PHP site
Is this enough to protect me from XSS
$title = preg_replace('/<[^>]*>/', '', $titleGet);
I use this before insert into DB
If you want to protect your forms against XSS attacks and still let some HTML through I recommend looking at something like HTML Purifier (http://htmlpurifier.org/).