Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

html-react-parser

Package Overview
Dependencies
Maintainers
1
Versions
144
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html-react-parser - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "html-react-parser",
"version": "0.3.0",
"version": "0.3.1",
"description": "An HTML to React parser.",

@@ -5,0 +5,0 @@ "author": "Mark <mark@remarkablemark.org>",

@@ -16,3 +16,3 @@ # html-react-parser

The parser converts a string of HTML to [React Element(s)](https://facebook.github.io/react/docs/glossary.html#react-elements).
The parser converts an HTML string to [React Element(s)](https://facebook.github.io/react/docs/react-api.html#creating-react-elements).

@@ -29,2 +29,4 @@ There is also an option to [replace](#replacedomnode) element(s) with your own React Element(s) via the [parser options](#options).

[JSFiddle](https://jsfiddle.net/remarkablemark/7v86d800/)
## Installation

@@ -47,4 +49,5 @@

```html
<!-- HTMLReactParser depends on React -->
<!-- HTMLReactParser depends on React and ReactDOM -->
<script src="https://unpkg.com/react@latest/dist/react.min.js"></script>
<script src="https://unpkg.com/react-dom@latest/dist/react-dom.min.js"></script>
<script src="https://unpkg.com/html-react-parser@latest/dist/html-react-parser.min.js"></script>

@@ -51,0 +54,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc