-
-
Notifications
You must be signed in to change notification settings - Fork 685
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
DOMPurify.sanitize is not a function #526
Comments
Not our bug, me thinks. |
@cure53 same problem here. Do you have any idea who's bug it is? |
Ah, maybe it needs jsdom? The readme doesn't seem to say that in node.js, you need jsdom to work |
I had this issue with NextJS on server-side rendering. |
I was into the same problem. the solution is |
i find a answer, this is a demo https://codesandbox.io/s/ei98d?file=/src/App.tsx |
🤔 |
I have similar issue, how to achieve this at pure javascript no framework like react? |
I had the same problem. Check |
What threw me off is this example from the docs
which doesn't work, but this does
|
Background & Context
I am using DOMPurify in my react App
Bug
DOMPurify.sanitize is not a function
Input
Given output
DOMpurify.sanitize is not a function
Expected output
Should execute well
The text was updated successfully, but these errors were encountered: