# remarkablemark/html-react-parser

📝 HTML to React parser.

Repository: https://github.com/remarkablemark/html-react-parser
Canonical: https://ross.abutalabs.com/products/html-react-parser
Homepage: https://b.remarkabl.org/html-react-parser
Language: TypeScript
License: MIT
License Family: permissive
Topics: html-react-parser, react-parser, react, html, dom, parse, parser, javascript, jsx, typescript, library, npm, package
Last push: 2026-08-25T04:35:01+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 97, longevity 100
- inputs: {"age_days": 3666, "days_push": 8, "days_rel": 20, "gap_med": 10, "n_releases_24m": 32}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2426, forks 140 (observed 2026-08-28T04:06:50.786399+00:00)

## What it is
html-react-parser is an npm library that converts HTML strings into React elements, working on both the server (Node.js) and the client (browser). It supports options like replace and transform for customizing how elements are converted.

## Use cases
- convert html strings to react elements
- render html content from a cms in react
- parse html into jsx components
- sanitize and render user-provided html in react
- replace or transform specific html elements during parsing
- render html on the server with ssr in react

## When to choose
- you need to render raw HTML strings inside a React app
- you want to convert HTML to React elements on both server and client
- you need fine-grained control over how HTML elements map to React components

## When to avoid
- you need full HTML sanitization against XSS as a primary security boundary
- you are not using React
- you need a general-purpose HTML scraper or extractor rather than React element conversion

## Facets
- artifact type: library
- maturity: stable
- function: parser
- domain: web-development, frontend, parsers
- platform: browser
- tags: react, html, jsx, typescript, npm, dom, nodejs, javascript

## Member repositories
- remarkablemark/html-react-parser (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:50.786399+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:31:38.668258+00:00, confidence not recorded.
  - readme: https://github.com/remarkablemark/html-react-parser (fetched 2026-08-28T04:06:50.786399+00:00, sha 3f288a68d72a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
