Shorter names for curly quotes in the HTML encoder
A reader asked if our HTML encoder could write a typographic apostrophe as ’ and a closing double quote as ”. If you’ve ever proofread a translation with ’ in the middle of a word, you’ll understand the request. The encoder now uses the familiar names by default when you choose named output for punctuation or extended entities.
Say you’re editing a menu and the drink is called “Café d’été”. With Punctuation and spaces, the name looks like this in the HTML source.
“Café d’été”
You can still proofread every accent. If the original has a narrow no-break space, the encoder writes it as  , so you can also spot a spacing change that would be easy to miss on screen.
If your editor expects a numeric reference, Reference format lets you write the same apostrophe as ’ or ’. To match an older file that uses the longer names, turn off Prefer familiar HTML entity names. All four spellings display the same apostrophe in HTML.
If readers see ’ on the page itself, our guide to diagnosing text encoding problems shows how to check whether the text was escaped twice.