html-react-parser

HTML to React parser.

README

html-react-parser


HTML to React parser that works on both the server (Node.js) and the client (browser):

  1. ```
  2. HTMLReactParser(string[, options])
  3. ```

The parser converts an HTML string to one or more React elements.

To replace an element with another element, check out the [replace](#replace) option.

Example


  1. ```js
  2. const parse = require('html-react-parser');
  3. parse('<p>Hello, World!</p>'); // React.createElement('p', {}, 'Hello, World!')
  4. ```


Table of Contents

  - replace
  - library
  - trim
  - v4
  - v3
  - v2
  - v1
- FAQ
- [Are `