WordPress.org

Ready to get started?Download WordPress

Forums

On the_title and apostrophe vs single right quotation mark html entities (2 posts)

  1. calvinccc
    Member
    Posted 8 years ago #

    Hi there,

    I've got a question on some of the titles returned by the_title() in my wordpress blog. Let's say the title of my post is:

    G'day

    ...with the apostrophe separating G and day

    What I get back from the_title() is:

    G& #8217;day (space added between & and # to prevent browser from parsing character)

    Looking at an HTML character code chart (http://www.tntluoma.com/sidebars/codes/), I find that & #8217; is the html entity for single right quotation marks, not apostrophes. Does anyone know how I can get

    G'day

    or

    G& #39;day

    returned (& #39; being the html entity for apostrophes)? If not from the_title() itself, then some other php function that encapsulates the_title()? Any help would be greatly appreciated.

    Thanks.

  2. yosemite
    Member
    Posted 8 years ago #

    I think that's an old chart/spec. Try:
    http://www.w3.org/TR/REC-html40/sgml/entities.html

    I'm thinking you might have to poke around functions-formatting.php?

Topic Closed

This topic has been closed to new replies.

About this Topic