Re: Cleaning Up Input

From: Date: Sat, 22 Jul 2000 15:55:15 +0000
Subject: Re: Cleaning Up Input
Groups: php.general 
Request: Send a blank email to php-general+get-7722@lists.php.net to get a copy of this message
This should do it: http://www.php.net/manual/function.strip-tags.php -----Original Message----- From: Jeff Wilhelm <jeffwilhelm@hotmail.com> To: php-general@lists.php.net <php-general@lists.php.net> Date: Saturday, July 22, 2000 2:46 PM Subject: [PHP] Cleaning Up Input >I thought this was an easy endeavor, using either ereg_replace or >preg_replace but I'm having more trouble than I thought. I'm sure someone >has already solved this problems, so hopefully this won't be too painful. >Essentially a user can input some text and it will be stored in a database. >That's the long and the short of it, except I want to guard against those >wonderful people who decide that changing their font and color and size and >making teh text bold and italic and blinking is fun. In other words, I want >to be left with the text but no HTML tags or the like. Anyone have something >prebuilt that they use? >-Jeff > > >J E F F R E Y M . W I L H E L M > > Phone: (860) 688-2976 > Voice Mail: (860) 285-7779 x2811 > Fax: (419) 735-8865 > E-Mail: jeff@jjjweb.com > Internet: http://www.jjjweb.com > >Read my Epinions at: http://www.epinions.com/user-jwilhelm > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net >For additional commands, e-mail: php-general-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#7722) next »