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

issue #542 Update sanirize-html to version 2.6.1 #1280

Merged
merged 30 commits into from
Jan 8, 2022

Conversation

IvanPizhenko
Copy link
Contributor

This PR updates sanitize-html to latest version 2.6.1

close #542


Tests (delete all except exactly one):

  • Tests added or updated

To be filled by reviewers

I have reviewed that this PR... (tick whichever items you personally focused on during this review):

  • addresses the issue it closes (if any)
  • code is readable and understandable
  • is accompanied with tests, or tests are not needed
  • is free of vulnerabilities
  • is documented clearly and usefully, or doesn't need documentation

@IvanPizhenko IvanPizhenko changed the title Issue 542 sanitize html issue #542 Update sanirize-html to version 2.6.1 Jan 7, 2022
@IvanPizhenko IvanPizhenko marked this pull request as ready for review January 7, 2022 13:22
Copy link
Collaborator

@sosnovsky sosnovsky left a comment

Choose a reason for hiding this comment

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

Looks good, but tests are failing

@@ -30,3 +30,9 @@ export const setGlobals = () => {
export const iso2022jpToUtf = (content: Buf) => {
return dereq_encoding_japanese.convert(content, { to: 'UTF8', from: 'JIS', type: 'string' });
}

export const debugPrintArray = (title: string, arr: any[]) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it used anywhere?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I wrote this. No longer needed, I think.

@IvanPizhenko
Copy link
Contributor Author

Looks good, but tests are failing

Yes, tests are failing, but I don't have any ideas what can be wrong. Locally all tests written in Typescript are passing.
The rest I can't check as long as I'm on Linux, not Mac.

@tomholub I suggest to merge now as is and let others fix tests.

@tomholub
Copy link
Collaborator

tomholub commented Jan 8, 2022

I don't want to merge until it passes all CI tests. @sosnovsky could you please take a look?

@sosnovsky
Copy link
Collaborator

I don't want to merge until it passes all CI tests. @sosnovsky could you please take a look?

Yes, I'll check it

@sosnovsky sosnovsky merged commit a1e0143 into master Jan 8, 2022
@sosnovsky sosnovsky deleted the issue-542-sanitize-html branch January 8, 2022 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Latest version (2.5.1) of sanitize-html cuts extra word
3 participants