Skip to content

HTML ampersand codes not consistently decoded #35

@couladin

Description

@couladin

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions