[wp-trac] [WordPress Trac] #63694: HTML Processing Improvements in 6.9
WordPress Trac
noreply at wordpress.org
Tue Aug 26 18:21:17 UTC 2025
#63694: HTML Processing Improvements in 6.9
--------------------------------------+---------------------
Reporter: dmsnell | Owner: nerrad
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.9
Component: HTML API | Version: trunk
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Changes (by nerrad):
* owner: (none) => nerrad
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"60665" 60665]:
{{{
#!CommitTicketReference repository="" revision="60665"
HTML API: Reliably parse HTML in get_url_in_content()
As part of a larger effort in #63694, this utlizes `WP_HTML_Tag_Processor`
instead of regex to parse the string passed into `get_url_in_content`.
As a benefit this also decodes the URL whereas the previous code didn’t,
so strings like `http://` will be properly decoded as `http://`.
Developed in: https://github.com/WordPress/wordpress-develop/pull/9272
Discussed in: https://core.trac.wordpress.org/ticket/63694
Props dmsnell, jonsurrell, nerrad.
Fixes #63694.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63694#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list