Jump to content

Encoded characters in meta tags


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...>


<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.

Edited by Coaxsist
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...