When I wrote about the evaporation of lots of .ga domains, I quoted one of my Fediverse posts and did this by copying it in my Firefox and pasting it into my vim editing session in an xterm. My post contained a link, and in the displayed text of the original post this link is shortened in Mastodon's usual style of displaying them. Currently, it renders as 'web.archive.org/web/2022040414…'. However, when I copied and pasted the text of the post, what I got in the plain text was the full text of the link, not the shortened text (in fact it seems basically impossible to copy the short text, which was slightly inconvenient for writing this entry).
(This is like the quiet tricks that get done with 'back' like actions.)