Should HTML be encoded before being persisted?
Posted
by Sir Psycho
on Stack Overflow
See other posts from Stack Overflow
or by Sir Psycho
Published on 2010-04-11T07:56:43Z
Indexed on
2010/04/11
8:03 UTC
Read the original article
Hit count: 245
html
|htmlencode
Should HTML be encoded before being stored in say, a database? Or is it normal practice to encode on its way out to the browser?
Should all my text based field lengths be quadrupled in the database to allow for extra storage?
Looking for best practice rather than a solid yes or no :-)
© Stack Overflow or respective owner