Skip to content

Line Feed hex character entity in attributes is missing #688

@magraina

Description

@magraina
  • Are you running the latest version?
  • Have you included sample input, output, error, and expected output?
  • Have you checked if you are using correct configuration?
  • Did you try online tool?
  • Have you checked the docs for helpful APIs and examples?

Description

The hex character entity 
 get's converted to a new line character \n.
I don't expect such a conversion and I could not find any config to prevent this behavior.

Input

<?xml version="1.0" encoding="UTF-8"?>
<content>
  <Label text="SUPPLY&#xa;AIR"/>
</content>

Code

const xmlDoc = create(xmlString);
xmlDoc.end({ prettyPrint: true })

Output

<?xml version="1.0" encoding="UTF-8"?>
<content>
  <Label text="SUPPLY
AIR"/>
</content>

expected data

I'm expecting that input and output are the same - &#xa; remains and don't get's converted to a new line character.

Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates. Visit SoloThought to know about recent features.

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