Tuesday, May 13, 2008

Coding Tip: Using the AND '&' Symbol

I wasn't aware this symbol could cause so much havoc.

Simple rule: Don't use the '&' symbol when writing plain text inside XML or html code.

For example, if referring to the product description
"cheese & crackers",
write "cheese and crackers" instead.

I learnt this the hard way. I stopped an entire code document running with the incorrect use of this one tiny symbol.

The perfect gift