Re: htmlspecialchars: better way
| From: | Derick Rethans | Date: | Tue, 14 Jan 2003 17:53:07 +0000 |
| Subject: | Re: htmlspecialchars: better way | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-93468@lists.php.net to get a copy of this message | ||
Hello,
please forward user questions to the php-general@lists.php.net
mailinglist, this list is for development _OF_ PHP, not development
_with_ PHP.
Derick
On Tue, 14 Jan 2003, Foong wrote:
> Hi,
> I wonder which is the better way to store data into database?
> 1. stor the data after we call htmlspecialchars with the data (means we
> store " as "e; in database)
> 2. stor the data in non encoded form and call htmlspecialchars whenever we
> want to display it.
>
> Foong
--
-------------------------------------------------------------------------
Derick Rethans http://derickrethans.nl/
PHP Magazine - PHP Magazine for Professionals http://php-mag.net/
-------------------------------------------------------------------------