Ampersands, encoding and validation

Hi

I’ve done a search of the forum, but not found precisely the right answer to this.

Please take a look at http://www.mandmkent.co.uk

If you can, run the page through the W3C validator for (X)HTML. You should get seven errors/warnings, and they’re mainly all about errors in metatags on the page.

The company name is M&M Associates. There are warnings about ampersands in the page code as well, but even when I’ve tried adding the & entity as markup in those situations, they still get flagged. The posts on this forum are about escaping ampersands in URLs, and don’t seem to cover the exact situation I find myself in.

I’m keen to have the site pass as much validation as possible, but the ampersand problems have me stumped. Do the code gurus have any ideas?

Thanks.

Heather


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

The rest of the page is fine, but in the meta tags, you have used the
ampersand and Freeway has ignored it for some reason. Try manually
escaping all of the ampersands in those tags:

<meta name="DESCRIPTION" content="M&amp;M Associates (Kent) Ltd  

provides creative, design and rebranding services, digital large
format printing, web design, and exhibition and display systems to
London and Kent. We will happily come to you to discuss your
requirements. Free Delivery!"/>

Really, Freeway should be doing this for you.

Walter

On Aug 19, 2008, at 6:58 AM, Heather Kavanagh wrote:

Hi

I’ve done a search of the forum, but not found precisely the right
answer to this.

Please take a look at http://www.mandmkent.co.uk

If you can, run the page through the W3C validator for (X)HTML. You
should get seven errors/warnings, and they’re mainly all about
errors in metatags on the page.

The company name is M&M Associates. There are warnings about
ampersands in the page code as well, but even when I’ve tried
adding the & entity as markup in those situations, they still
get flagged. The posts on this forum are about escaping ampersands
in URLs, and don’t seem to cover the exact situation I find myself in.

I’m keen to have the site pass as much validation as possible, but
the ampersand problems have me stumped. Do the code gurus have any
ideas?

Thanks.

Heather


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

On 19 Aug 2008, at 13:16, Walter Lee Davis wrote:

Really, Freeway should be doing this for you.

Thanks, Walter. I’m trying the escaping now. I’ve been working on a
tunnel for some time now…

short time later

Cool! That worked. Excellent.

Heather


“Freeway - Web Design for All”


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options