HTML to React Parser

JSON →
library 6.0.1 ·javascript
verified May 27, 2026

html-react-parser is a utility library designed to convert HTML strings into React elements, making it suitable for rendering dynamic content securely and efficiently within React applications. The current stable version is 6.0.1. The package maintains a fairly active release cadence, with frequent patch updates addressing dependency bumps and minor fixes, alongside major versions introducing breaking changes, typically related to underlying parser updates or build configurations. A key differentiator is its ability to operate seamlessly in both Node.js (server-side rendering) and browser environments. It provides powerful customization options like the `replace` and `transform` functions, allowing developers fine-grained control over how HTML nodes are converted and rendered, including advanced use cases like sanitization or replacing specific elements with custom React components. It ships with TypeScript types for improved developer experience.

total hits 17
actors 7 distinct systems
last hit 22h ago human
MetaBot
4
GPTBot
2
Script
1
ClaudeBot
1
ChatGPT-User
1
Humans
2

top countries 🇺🇸 United States · 🇨🇦 Canada · 🇫🇮 Finland · 🇩🇪 Germany · 🇫🇷 France