Skip to content

Handling of &#...; entities #17

Description

@atomictag

It looks that the parser does not correctly handle entities in the form &#...; (e.g. Zürich -> Zürich).
They get translated into empty strings because _replaceEntity calls the following (line 687):
strEnt = String.fromCharCode(parseInt(strD.substring(iB + 1, iE)));
but it should really be:
strEnt = String.fromCharCode(parseInt('0x' + strD.substring(iB + 2, iE)));
(at least, this is working for me with German-language entitities like ü. ö etc.

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