How do you deal with links that have < or > in them?

<https://lists.sr.ht/~sircmpwn/email-test-drive/<8433652D-8153-4DFC-B2CE-A73B78969083%40nixnetmail.com>>

It should produce this:

<p>&lt;https://lists.sr.ht/~sircmpwn/email-test-drive/&lt;8433652D-8153-4DFC-B2CE-A73B78969083%40nixnetmail.com&gt;&gt;</p>

because it’s not a valid autolink. The absolute URI cannot contain < and >. If you need to include those characters in the autolink, they have to be percent-encoded. I.e. the following is a valid autolink:

<https://lists.sr.ht/~sircmpwn/email-test-drive/%3C8433652D-8153-4DFC-B2CE-A73B78969083%40nixnetmail.com%3E>

Refer to the specification of autolinks for more info.

2 Likes