Skip to content

useNamedReferences doesn't work for all characters #74

@crlngn

Description

@crlngn

While setting useNamedReferences to true and encodeEverything to true, the character / is encoded as / but the character \ is encoded as \ The same happens with the hyphen/minus character, which is encoded as -

var entity = he.encode(html, {
          useNamedReferences: true,
          encodeEverything: true
})

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