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

# 5576 Add TrustedHTML flag in DomPurify #5855

Closed
wants to merge 1 commit into from

Conversation

martgil
Copy link
Collaborator

@martgil martgil commented Oct 27, 2024

This PR added RETURN_TRUSTED_TYPE flag in DomPurfify.sanitize() applicable functions.

close #5576


Tests (delete all except exactly one):

  • Does not need tests (refactor only, docs or internal changes)

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

@martgil martgil marked this pull request as draft October 27, 2024 05:52
@martgil martgil closed this Oct 27, 2024
@martgil
Copy link
Collaborator Author

martgil commented Oct 27, 2024

browser support and some javascript libraries do not work support TrustedTypes - https://developer.mozilla.org/en-US/docs/Web/API/Trusted_Types_API

@martgil martgil deleted the issue-5576-add-trusted-html-support branch October 27, 2024 09:05
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.

Use Trusted Types in DOMPurify
1 participant