[wp-trac] [WordPress Trac] #18549: wp_texturize incorrectly curls closing quotes after inline HTML end tags
WordPress Trac
noreply at wordpress.org
Sat May 30 14:37:10 UTC 2015
#18549: wp_texturize incorrectly curls closing quotes after inline HTML end tags
-------------------------------------------------+-------------------------
Reporter: justincwatt | Owner:
Type: defect (bug) | wonderboymusic
Priority: normal | Status: reopened
Component: Formatting | Milestone: Future
Severity: normal | Release
Keywords: wptexturize needs-patch needs-unit- | Version: 3.2.1
tests | Resolution:
| Focuses:
-------------------------------------------------+-------------------------
Comment (by miqrogroove):
Algorithm brainstorm:
1. Make a string that is stripped of all elements and shortcodes.
1. Make an array of the elements and shortcodes, indexed by string
position.
1. Apply all formatting changes to the text-only string.
1. Compare the formatted string to the unformatted string.
1. Copy each formatting change to the original input OR insert the
elements and shortcodes back into the formatted string.
This is based on the assumptions that we can't simply parse around
elements, we can't use inline placeholders for the elements if we want to
keep the existing regular expressions, and elements can be positioned
anywhere in the text.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/18549#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list