Put in order · JavaScript and React course · Module 10: React Ecosystem and Future
Horizontal Ordering: DOMPurify Sanitization
Arrange the syntax for using DOMPurify to safely render HTML in React:
Items to put in order
- __html:
- DOMPurify.sanitize(rawHtml)
- dangerouslySetInnerHTML={{
- }} />
- <div
You can check the correct answer by solving this task in the CodeWorlds game.