Sanitize html: Anynone used dompurify within code node?

Hi @Kool_Baudrillard :wave:

I might not be too sure on this one, but at the same time - could you post a sample of the HTML you’re looking to sanitise? Make sure there’s nothing sensitive of course, but it might be helpful in building something. Especially if you could also mention why regex wasn’t working so well for you!

If you want to specifically use dompurify, as long as you’re self-hosting you could add this as a module to the code node.