On the_title and apostrophe vs single right quotation mark html entities
-
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 (https://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.
- The topic ‘On the_title and apostrophe vs single right quotation mark html entities’ is closed to new replies.