94062cea691e39364a69761f4e86ee71dca1c080
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 `&` is undone: `<` and `>` cannot appear in an autolink, so those links keep the inline form. Fixes #248
Description
My contributions to thephpleague/html-to-markdown: 6 commits, 1 merged PRs
83 KiB
0 Stars
1 Watchers
0 Forks
Languages
PHP
100%