Skip to main content

DOMPurify

Homepage

https://github.com/cure53/DOMPurify 

What is it?

A JavaScript library for sanitising input to protect against XSS attacks.

What do we use it for?

Sanitizing user input when displaying it on pages, where it's not being displayed by e.g. a library such as TinyMCE which already performs this step.