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 < and > #343

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

Parser does not parse carriage return < and > #343

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

Comments

@trivikr
Copy link

trivikr commented May 11, 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 < and > correctly

Input

Code

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

console.log(
  parse(`
<?xml version="1.0"?>
<Body>Invalid email address&lt;abc123&gt;.</Body>`)
);

Output

{ Body: 'Invalid email address&lt;abc123&gt;.' }

expected data

{ Body: 'Invalid email address<abc123>.' }

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 changed the title Parser does not parse carriage return &lt; and &gt; correctly Parser does not parse carriage return &lt; and &gt; May 13, 2021
@amitguptagwl amitguptagwl added Feature-Request New features suggested by users v4 labels May 13, 2021
@amitguptagwl
Copy link
Member

Please check with v4.0.0-beta.3

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