Improper use of “smart quotes” (aka “slanty quotes”, “curly quotes”) came up in a code review. Get Smart with Smart Quotes was a great resource. Â Here are some quick take-aways:
- Smart quotes consist of an open and a closed version (also referred to as left and right quotes).
- Don’t confuseÂ apostropheÂ (‘)Â with a single quotation markÂ (â€˜).
- Contractions should use the apostrophe character.
- There are named HTML entities for smart quotes:Â ‘ (â€˜)Â ’ (â€™)Â “Â (â€œ)Â ” (â€)