Copy & paste the following in the html post editor:
<em>John</em>'s
Then click preview button and see the results. It will be:
John‘s
This is grammatically incorrect. It should be:
John’s
It should always be a closed apostrophe. Any solutions to this? Obviously, the <em>
tag conflicts the quote transformation.
I'm guessing wptexturize() does the quote transformations? Shouldn't it strip the tags first before interpreting the text...?
wptexturize()
should do its job like you expect it. Because this is the match and this the replacement - if I understand the code correctly. Example at regex101 tester. Sorry, still no real help, just confusion. – Nicolai Jul 21 '15 at 21:43wptexturize()
is one long offending line...) - if the regex's changed to eg'/(?<=\A|[([{"\-]|<|' . $spaces . ')\'(?!s\b)/'
(to not match 's on its own) then this problem at least goes away... – bonger Jul 21 '15 at 23:47