December 29th, 2016

Pairing Whore Penguins

An HTML trick for replacing the double quotation mark in your cut tag with a single quotation mark

Recently, LJ's been rendering my apostrophes in cut tags as double quotation marks, which is annoying and wrong—and it can be corrected by using the HTML entity [’]! Note that the brackets ([]) are not part of the HTML entity for a right single quotation mark.

Instead of using a single quotation mark in your cut tag, which will render as a double quotation mark, use the aforementioned HTML entity.

Don't do this: <lj-cut text="I'm writing about penguins today">

It will render like this:

Cut Tag Don’t

Do this: <lj-cut text="I&rsquo;m writing about penguins today">

It will render like this:

Cut Tag Do

Easy, peasy!