Quotes in post titles converted to a different character

Hi.

Since the last Discourse update, when I write a post title that contains a quote ', it is converted to preceded by a single space when I create the post.

If I click on the edit title button, the input correctly shows ' but it is always converted to (preceded by a single space) when I do confirm the title edition.

Also it appears that if I write a double quote ", it will be converted to ».

3 Likes

Hmm this looks like a new bug with the international quotes @zogstrip

2 Likes

@gerhard is already aware.

We might have to revert that commit, since our HtmlPrettify is working on a “character-by-character” basis, it doesn’t know when a quote is the start of a matching pair or merely an apostrophe.

Something like smartquotes.js might work but this is a very complicated problem.

6 Likes
5 Likes