# react-html-parser-ultimate

> A utility for converting HTML strings into React components

Latest version **1.0.7** (published 2018-10-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-html-parser-ultimate
pnpm add react-html-parser-ultimate
yarn add react-html-parser-ultimate
bun add react-html-parser-ultimate
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.7 |
| Published | 2018-10-10 |
| First published | 2018-09-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 28.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Joakim Melseth |
| Maintainers | joakim_sm |

## Links

- npm: https://www.npmjs.com/package/react-html-parser-ultimate
- Repository: https://github.com/JoakimSM/react-html-parser-ultimate
- Homepage: https://github.com/JoakimSM/react-html-parser-ultimate#readme
- Issues: https://github.com/JoakimSM/react-html-parser-ultimate/issues
- npm.io page: https://npm.io/package/react-html-parser-ultimate

## Dependencies (1)

- [htmlparser2](https://npm.io/package/htmlparser2.md) ^3.9.2

## Recent versions

- 1.0.7 (latest) — 2018-10-10
- 1.0.6 — 2018-10-09
- 1.0.5 — 2018-10-09
- 1.0.4 — 2018-10-09
- 1.0.3 — 2018-10-08
- 1.0.2 — 2018-09-27
- 1.0.1 — 2018-09-27
- 1.0.0 — 2018-09-27

## README

[![Build Status](https://travis-ci.com/JoakimSM/react-html-parser-ultimate.svg?branch=master)](https://travis-ci.com/JoakimSM/react-html-parser-ultimate)

# react-html-parser-ultimate
A utility for converting HTML strings into React components

### Installation

`npm i react-html-parser-ultimate`

or 

`yarn add react-html-parser-ultimate`

### Usage

```
import { parseHtml } from 'react-html-parser-ultimate';

parseHtml(html, {
    onTransform: (node, index, nodeToElementFn) => {
        if (node.name === 'div') {
            node.name = 'span';
            return nodeToElementFn(node, index);
        }
        return undefined;
    },
    allowScript: true,
});
```

---
_Source: https://npm.io/package/react-html-parser-ultimate · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
