mastodon.nvim icon indicating copy to clipboard operation
mastodon.nvim copied to clipboard

HTML ampersand codes not consistently decoded

Open couladin opened this issue 8 months ago • 0 comments

It appears that the HTML parser doesn't always decode HTML ampersand codes properly (e.g. ' or >), though it does seem to encode them correctly?

For example, my feed shows content such as:

When I picked up Lola's collar...

I'm likewise...

[someurl]?s=46&t=[somevalue]

The second example was posted by me using mastodon.nvim: I typed I'm on my keyboard and it displays as above. The & -> & encoding is more of a problem as it may break URL parameters, etc.

It doesn't appear to happen all the time, as I can see posts in my mastodon.nvim feed that render ' and other non-alphanumeric characters correctly, so it might be a instance- or client-specific issue. For reference, my instance is mas.to.

couladin avatar May 05 '25 17:05 couladin