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

fix: bump up html-dom-parser to handle carriage return #1617

Conversation

kingflamez
Copy link

@kingflamez kingflamez commented Dec 1, 2024

What is the motivation for this pull request?

Bug fix

What is the current behavior?

Addresses html-dom-parser #420
Fixes #864

What is the new behavior?

const text = "toto \r\n toto"

parse(text)

old output: "toto toto"
new output: "toto \r\n toto"

Checklist:

@kingflamez kingflamez marked this pull request as draft December 1, 2024 10:55
@remarkablemark remarkablemark added bug Something isn't working dependencies Pull requests that update a dependency file labels Dec 1, 2024
@@ -49,7 +49,7 @@
],
"dependencies": {
"domhandler": "5.0.3",
"html-dom-parser": "5.0.10",
"html-dom-parser": "5.0.11",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't forget to update package-lock.json as well

Copy link
Owner

@remarkablemark remarkablemark Dec 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kingflamez the html-dom-parser package has been released:

After updating the lockfile, could I get your help in adding a test?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Heads up, I'll be merging #1623 so we can close this PR. Thanks for your help on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parsing wordpress category content
2 participants