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: ‘ (‘) ’ (’) “ (“) ” (”)