[wp-trac] [WordPress Trac] #30986: Consider using an abstract syntax tree for wpautop
WordPress Trac
noreply at wordpress.org
Thu Jan 15 05:59:10 UTC 2015
#30986: Consider using an abstract syntax tree for wpautop
-------------------------+------------------------------
Reporter: ericlewis | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 0.71
Severity: normal | Resolution:
Keywords: | Focuses:
-------------------------+------------------------------
Comment (by ericlewis):
In attachment:30986.5.diff, remove the testing and short-circuit
`wpautop()` with an invocation of the class.
Add better support for inline elements and the `$br` parameter.
Interestingly, DOMDocument seems to sanitize the `href` attribute in `<a>`
tags, so I added placeholder support so `$` and `%3` passes through.
Will continue debugging unit tests until there's functional parity.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30986#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list