[wp-trac] [WordPress Trac] #18549: wp_texturize incorrectly curls closing quotes after inline HTML end tags
WordPress Trac
noreply at wordpress.org
Thu Feb 20 07:06:42 UTC 2020
#18549: wp_texturize incorrectly curls closing quotes after inline HTML end tags
-----------------------------------+--------------------------
Reporter: justincwatt | Owner: miqrogroove
Type: defect (bug) | Status: assigned
Priority: normal | Milestone:
Component: Formatting | Version: 3.2.1
Severity: normal | Resolution:
Keywords: wptexturize has-patch | Focuses:
-----------------------------------+--------------------------
Comment (by slamorte):
For those that can't patch core or don't want to, I have a simple content
filter that solves a common issue: an italicized name followed by a
possessive, e.g. "As reported in //CNN//'s latest article."
{{{#!php
$content = preg_replace('#>&\#8216;s\b#', '>’s', $content);
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18549#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list