Skip to content

Commit

Permalink
Update README with html-dom-parser and tidy up special thanks
Browse files Browse the repository at this point in the history
Replace `htmlparser2` with `html-dom-parser` link and tidy up
other parts.
  • Loading branch information
remarkablemark committed Oct 14, 2016
1 parent 07c6847 commit e207d62
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,13 @@ Parser('<p>Hello, world!</p>');

## Installation

[NPM](https://www.npmjs.com/package/html-react-parser):

```sh
$ npm install html-react-parser
```

Or you can download the script from a CDN:
[CDN](https://unpkg.com/html-react-parser/):

```html
<!-- HTMLReactParser depends on React -->
Expand Down Expand Up @@ -113,7 +115,7 @@ The element is only replaced if a valid React Element is returned.
```js
// with JSX
Parser('<p id="replace">text</p>', {
replace: (domNode) => {
replace: function(domNode) {
if (domNode.attribs && domNode.attribs.id === 'replace') {
return <span>replaced</span>;
}
Expand Down Expand Up @@ -189,9 +191,8 @@ $ npm run lint

## Special Thanks

- To [htmlparser2](https://github.com/fb55/htmlparser2).
- To all the [contributors](https://github.com/remarkablemark/html-react-parser/graphs/contributors).
- To [benox3](https://github.com/benox3) and [tdlm](https://github.com/tdlm) for their feedback and review.
- [html-dom-parser](https://github.com/remarkablemark/html-dom-parser)
- [Contributors](https://github.com/remarkablemark/html-react-parser/graphs/contributors)

## License

Expand Down

0 comments on commit e207d62

Please sign in to comment.