[KongchangAI]
ProductDOMPurify

DOMPurify

A widely used front-end HTML sanitization library that traverses using the browser's native DOM parser and supports sanitization of HTML, SVG, and MathML. It is used to defend against XSS attacks and can be used together with React's dangerouslySetInnerHTML.

Timeline (last 90 days)

Oct 13

DOMPurify is a widely used HTML sanitization library in the frontend ecosystem, maintained by the Cure53 team, supporting sanitization of HTML, SVG, and MathML.

Unverified50%
Oct 13

The typical pattern for using DOMPurify in React is to first call DOMPurify.sanitize(html), then pass the result to dangerouslySetInnerHTML.

Unverified50%

All Facts (2)

Source Articles