Skip to content

Entity expansion #220

@fileformat

Description

@fileformat

Hi Rowan!
I'm using feed-parser for my Feed Analyzer and someone complained that entities are not getting expanded properly. Feed with the issue. Based on my understanding of XML, this is a real issue.

I tested fast-xml-parser and it will correctly expand entities if you add htmlEntities: true to the options. The processEntities: true option didn't seem to do anything.

However, I noticed that there is also entity processing in element.js and I don't want double-expand them (though I'm not using textContentNormalized(), so it would work for me).

Let me know what you think. I'm happy to make a PR if you are okay with adding the option.
Andrew

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions