Re: htmlspecialchars
| From: | Chris Shiflett | Date: | Tue, 14 Jan 2003 18:05:37 +0000 |
| Subject: | Re: htmlspecialchars | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-131594@lists.php.net to get a copy of this message | ||
--- Foong <chiew325@tm.net.my> wrote:
> 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.
Option 2.
Please do not cross-post questions like this to the
developer's list. This list (php-general@lists.php.net) is
the appropriate place for these types of questions.
Chris