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

Newlines in attribute values are replaced with spaces #330

Closed
5 of 6 tasks
aukeman opened this issue Mar 25, 2021 · 1 comment
Closed
5 of 6 tasks

Newlines in attribute values are replaced with spaces #330

aukeman opened this issue Mar 25, 2021 · 1 comment
Labels
Feature-Request New features suggested by users v4

Comments

@aukeman
Copy link

aukeman commented Mar 25, 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

newlines in attribute values are replaced with spaces when parsed

Code

parser.parse('<element attr="a\n\nmultiline\n\nstring"></element>', {ignoreAttributes: false});

Output

{ element: { '@_attr': 'a  multiline  string' } }

expected data

{ element: { '@_attr': 'a\n\nmultiline\n\nstring' } }

Would you like to work on this issue?

  • Yes
  • No

Bookmark this repository for further updates.

@github-actions
Copy link

I'm glad you find this repository helpful. I'll try to address your issue ASAP. You can watch the repo for new changes or star it.

@amitguptagwl amitguptagwl added Feature-Request New features suggested by users v4 labels May 13, 2021
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