Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Possible bug with quotes in Meta Description? Rate Topic   - - - - -

 
  • Smich
  • Advanced Member
  • Members
  • Join Date: 13-Jan 12
  • 65 posts

Posted 10 May 2012 - 01:51 PM #1

Hi,

I filled the meta description field in the "SEO / Meta data" part of the category page with the following:-

Hard Drives in 3.5" and 2.5" sizes

I then noticed that the literal HTML generated for the meta description in the header was as follows:-

Posted Image


Note the content attribute- this should end with the double-quote following 'sizes', but due to the first double-quote in the description (apparently) not having been filtered out, it is closed following '3.5' and hence the remainder of the tag is messed up.

I'm guessing this wasn't intentional? At the least I would have assumed that double-quotes would be filtered out or converted to single quotes.

- Smich

 
  • Triplets
  • Senior Member
  • Members
  • Join Date: 23-Sep 08
  • 1188 posts

Posted 10 May 2012 - 02:27 PM #2

Here is a tech note from Google:

Quotes Cut Off Descriptions
Any time quotes are used in a meta description, Google cuts off the description. To prevent meta descriptions from being cut off, it's best to remove all non-alpha/numeric characters from meta descriptions. If the quotes are important to include they can be changed to single quotes rather than double quotes to prevent truncation.

 
  • Smich
  • Advanced Member
  • Members
  • Join Date: 13-Jan 12
  • 65 posts

Posted 11 May 2012 - 11:47 AM #3

Here is a tech note from Google


That's very interesting, thank you- the implication being that we shouldn't be using double-quotes in meta descriptions at all.

That said, it doesn't really address (or negate) my original question- namely, whether CS Cart's behaviour is an oversight and/or bug. IMHO, it should either filter, convert and/or (at the very least) draw the user's attention to the problem of double-quotes.

Even if the user is aware of the issue, it's still possible to overlook it- for example, in this case! I spotted this due to Firefox's source code highlighting (see original quote above). The text was cut and pasted from elsewhere and in context, the double-quote meant "inches" (rather than being used as an actual enclosing quote) which made it easier to miss.

Anyway, not the end of the world, but something I'll have to keep an eye on. Thanks,

- Smich