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: calling applyHtmlCode() with number/boolean #942

Merged
merged 1 commit into from
Dec 3, 2023

Conversation

ghiscoding
Copy link
Collaborator

@ghiscoding ghiscoding commented Dec 3, 2023

having a Formatter returning a number or boolean might not work correctly when passed to sanitizer like DOMPurify. We should simply apply text directly with .textContent without passing by the sanitizer

@ghiscoding ghiscoding merged commit b1b4fa2 into master Dec 3, 2023
2 checks passed
@ghiscoding ghiscoding deleted the bugfix/apply-html-number-boolean branch December 3, 2023 05:11
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.

1 participant