htmlentities() on the way in to the database or on the way out?

From: Date: Wed, 24 May 2000 20:10:06 +0000
Subject: htmlentities() on the way in to the database or on the way out?
Groups: php.general 
Request: Send a blank email to php-general+get-473@lists.php.net to get a copy of this message
It seems to me that pretty much everything that you are gonig to show to the user via html should be passed through htmlentities(). the question is, is it better to do it once on the way in to the database or every time you get it out? the plus of doing it on the way in is that you only have to do it once. the problem is that you loose the real content (unless there is an htmlunentities()). cheers, Angus.

« previous php.general (#473) next »