Re: note 9335 added to print

From: Date: Sat, 28 Oct 2000 00:08:48 +0000
Subject: Re: note 9335 added to print
Groups: php.notes 
Request: Send a blank email to php-notes+get-7118@lists.php.net to get a copy of this message
The follwing has been added to your comment: [Editor's note: a better solution is to use htmlspecialchars() or htmlentities().] --- dufus@dgs.20m.com wrote: > You can print out textareas and other inputs that > may contain terminators by replacing the < and > > with lt and gt. > ie. > $string=str_replace("&","&amp;",$string); > $string=str_replace("<","&lt;",$string); > $string=str_replace(">","&gt;",$string); > > http://www.php.net/manual/function.print.php > > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, e-mail: > php-notes-unsubscribe@lists.php.net > For additional commands, e-mail: > php-notes-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net > ===== --- Jesus M. Castagnetto (jcastagnetto@yahoo.com) __________________________________________________ Do You Yahoo!? Yahoo! Messenger - Talk while you surf! It's FREE. http://im.yahoo.com/

« previous php.notes (#7118) next »