replacing ' and " characters with proper quotation marks

568 views Asked by At

I'm developing a simple site that doesn't use PHP. This the first website I've programmed from scratch and I'm trying to find the standard method for replacing ' and " (foot and inch marks) with proper apostrophe's and smart quotes . I've looked for an answer but mostly what I'm finding applies to PHP or other backend situations I don't recognize, or it seems to be an article written in the early 2000's. The only thing I know to do is to edit the actual content with the appropriate entity name, but what a pain that would be for a whole site. There must be a trick I don't know about? Did I mention this is my first website:)

2

There are 2 answers

5
AudioBubble On

Use a HTML editor that allows to load multiple files and do a multiple replace in all the files at once. I use Coffee Cup HTML Editor for such, albeit it is buggy.

0
Damien On

I'm more a backend guy when it comes to handle smart typography (I'm the creator of JoliTypo) but another tool I know is Typesetters.js.

You have to install a custom font and a javascript file but you will end-up with a pretty good rendering / typography. I think it only handle English quotes too.