dualfroz 94062cea69 fix: use autolinks for URLs that contain an ampersand
The link text goes through TextConverter, which escapes `&` to `&`,
while the href is the decoded attribute value, so `$href === $text` never
held for a URL with a query string like `?a=1&b=2`. Undo that escaping
before comparing. Only `&amp;` is undone: `<` and `>` cannot appear in an
autolink, so those links keep the inline form.

Fixes #248
2026-10-03 02:27:25 +02:00
2026-09-04 09:09:23 +02:00
S
Description
My contributions to thephpleague/html-to-markdown: 6 commits, 1 merged PRs
83 KiB
0 Stars 1 Watchers 0 Forks
Languages
PHP 100%