Search code examples
phpwordpressquotes

PHP and Various Single Quotes


using WordPress and adding the title of a post to be

Jane's Addiction

When it's viewed in the page it comes out as

Jane’s Addiction

Please note the different single quote.

Any sort of replace on the 2nd version of the single quote doesn't seem to work. I want to replace it with a "normal" single quote as shown in first example as it doesn't work when using tags.

Thanks,

JJ


Solution

  • This is apparently caused by the wptexturize function.

    While I haven't tried any of these fixes/workarounds myself, this page does provide a few that you could try.