Our great sponsors
-
DOMPurify
DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
-
SurveyJS
Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App. With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
I was thinking about some sanitization library but found this: https://github.com/remarkablemark/html-react-parser which i have reviewed to deeply yet.
Use DOMPUrify. That plus dangerouslySetInnerHTML and you're good to go.
NOTE:
The number of mentions on this list indicates mentions on common posts plus user suggested alternatives.
Hence, a higher number means a more popular project.
Related posts
- Displaying WYSIWYG editor's output with React
- Launched my Social Media website for lonely people living abroad, all thanks to NextJS!
- Mastering DOM manipulation with vanilla JavaScript
- Mitigating DOM clobbering attacks in JavaScript
- Is it harder to build and maintain web applications using vanilla js or react?