12 Replies
Could anyone look at this please?
how are you importing it?
I'm using the sanitize-html package from npm on that route
are you using
import
syntax or require
?import
could you send a screenshot of your import code?
hmm
if you don’t import it and call the endpoint does it error out?
besides the fact sanitizehtml wouldn’t be defined
I fixed it by using a different sanitzer
@1nf I'm having the same problem. What sanitzer are you using?
GitHub
GitHub - jill64/universal-sanitizer: 💎 Isomorphic html sanitizer by...
💎 Isomorphic html sanitizer by DOMPurify + sanitize-html - jill64/universal-sanitizer
@1nf Thanks! That helped a lot!