News for hackers. Stuff that matters.
Re:PHP best practices by prodigal_erik on Saturday December 18, 2010 @07:25PM (#2020688)
Encoding is dirt cheap. You probably pay more just for a TCP stack that isn't perfectly tuned for your workload.

And you can't pre-encode a string without baking in bad assumptions that you know how it may ever be used. You're going to regret having your data store polluted with HTML-specific encoding as soon as you build an API or integrate a third-party tool (e.g., analytics or sales support), because they will need either raw values or some different encoding than HTML text (SGML entities).

There are no comments on this comment yet.