Jump to content

Encoded characters in meta tags


knystrom18

Recommended Posts

Can I do this without messing anything up? The particular character in question is an apostrophe.I have:

<meta name='keywords' content='Martin's etc, etc...>

and

<meta name='description' content='A place ... about Martins's'>

Should any instance of a " ' " be encoded as

'

or something else?Thanks,- KNEVERMIND: Any time I type in an encoded character here, it just renders the character instead of the syntax, but it's all good. Thanks anyways.

Link to comment
Share on other sites

You'll need to encode those. & #39; (without the space) should work.I think you might (I'm not 100% sure) be able to get away with doing it with double quotes like this:<meta name='keywords' content="Martin's etc, etc...">

Link to comment
Share on other sites

I think you might (I'm not 100% sure) be able to get away with doing it with double quotes like this:<meta name='keywords' content="Martin's etc, etc...">
I think so. Always used double quotes and not come across with any problems with using single quotes inside them.
Link to comment
Share on other sites

Awesome. Thanks guys. I'll roll with the double quotes. I don't really want to be typing in/copy-pasting the encoded characters text when I could be using keys on my keyboard.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...