For the past few months I've been working on a library to safely render HTML without using
dangerouslySetInnerHTML. Everyone knows how hacky that approach is and how dirty it makes you feel, so hopefully this library will rid that feeling!
I call it Interweave, because it interweaves React elements throughout a string. The library can be found here: https://github.com/milesj/interweave
It also does much more than simply render HTML. It can match patterns and replace with React elements. It can filter and clean values to avoid vulnerabilities. It supports emojis, and much more!
Let me know what you think!