RE: [PHP] Banning javascript?

From: Date: Tue, 09 Apr 2002 04:17:00 +0000
Subject: RE: [PHP] Banning javascript?
Groups: php.general 
Request: Send a blank email to php-general+get-92164@lists.php.net to get a copy of this message
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 jasonm@melbourneit.com.au Web Developer, Melbourne IT "Work now, freak later!" > -----Original Message----- > From: Leif K-Brooks [mailto:eurleif@buyer-brokerage.com] > Sent: Tuesday, April 09, 2002 1:36 PM > To: php-general@lists.php.net > 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 >

« previous php.general (#92164) next »