Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser does not parse carriage return 
 correctly #342

Closed
5 of 6 tasks
trivikr opened this issue May 10, 2021 · 2 comments
Closed
5 of 6 tasks

Parser does not parse carriage return 
 correctly #342

trivikr opened this issue May 10, 2021 · 2 comments
Labels
Feature-Request New features suggested by users v4

Comments

@trivikr
Copy link

trivikr commented May 10, 2021

  • 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?

Description

Parser does not parse carriage return 
 correctly

Input

Code

import { parse } from "fast-xml-parser";

console.log(
  parse(`
<?xml version="1.0"?>
<Body>hello&#xD;
world</Body>`)
);

Output

{ Body: 'hello&#xD;\nworld' }

expected data

{ Body: 'hello&\r\nworld' }

Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates.

@trivikr
Copy link
Author

trivikr commented May 11, 2021

Related: #297

@amitguptagwl amitguptagwl added Feature-Request New features suggested by users v4 labels May 13, 2021
@amitguptagwl
Copy link
Member

please check v4.0.0-beta.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature-Request New features suggested by users v4
Projects
None yet
Development

No branches or pull requests

2 participants