Iulia Linnea (iulia_linnea) wrote,
Iulia Linnea
iulia_linnea

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!
Tags: &rsquo;, livejournal, tip
Subscribe
  • Post a new comment

    Error

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 0 comments