Use strip_tags and only allow basic HTML (basic HTML can be anything but I'd make it <B><I><U><DIV><SPAN><STYLE><TABLE><TR><TD>) through.
This will strip all <SCRIPT> tags. J -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" > -----Original Message----- > From: Leif K-Brooks [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 09, 2002 1:36 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Banning javascript? > > > I want to ban javascript from my site (users can edit some > things). I know > how to ban it in <script> tags, but does anyone have a > function that bans > javascript in ALL of the ways of puting it on? It would take > me a while to > figure them all out. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php