[wp-trac] [WordPress Trac] #50514: make_clickable nested links bug
WordPress Trac
noreply at wordpress.org
Mon Oct 12 17:15:59 UTC 2020
#50514: make_clickable nested links bug
----------------------------------------+------------------------------
Reporter: elhardoum | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 5.5
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+------------------------------
Comment (by cfinke):
This would solve a problem that I've encountered in the wild, but it
appears that it still has unexpected behavior. For example, with this
input:
{{{
<a href="http://example.com/">http://example.com/</a><a
href="http://example.com/">http://example.com/</a>
}}}
the patched `make_clickable()` produces output with nested `<a>` tags:
{{{
<a href="http://example.com/"><a href="http://example.com/"
rel="nofollow">http://example.com/</a></a><a
href="http://example.com/">http://example.com/</a>
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50514#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list