Answered
Amperstands in text
I was doing some testing of some CF pages that I developed
and ran across a problem I've not seen discussed. I am pulling
information from a database and have found that occasionally there
are amperstands in the data that I'm displaying (a company name
like Johnson & Johnson, for example). The page displays ok in
IE, but it doesn't validate when using the validator at w3.org.
My questions are these: should I care that these pages won't validate? Might there be browsers that wouldn't display this information correctly? If so, should I be doing a replace(myfield,"&", "&", "all") everytime I display a text field just in case the data contains an amperstand?
My questions are these: should I care that these pages won't validate? Might there be browsers that wouldn't display this information correctly? If so, should I be doing a replace(myfield,"&", "&", "all") everytime I display a text field just in case the data contains an amperstand?
