[nycphp-talk] Re: New PHundamentals Article
John Lacey
jlacey at att.net
Mon Jan 5 13:53:54 EST 2004
Chris Shiflett wrote:
> There are also two different opinions on this:
>
> 1. Perform htmlentities() prior to storage.
> 2. Perform htmlentities() prior to display.
>
> The first can be better if you must display data in HTML very often.
> Rather than perform htmlentities() every time, you can just pull straight
> from the database.
>
FWIW, I believe data should be "display-agnostic" for want
of a better term. Keeping it "raw" is, in my opinion, the
way to handle stored data.
John
More information about the talk
mailing list