{
  "_id": "react-html-parser",
  "maintainers": [
    {
      "name": "wrakky",
      "email": "pete@blarg.co.uk"
    }
  ],
  "keywords": [
    "react",
    "html",
    "htmlparser",
    "htmlparser2",
    "inner html",
    "dangerouslySetInnerHTML"
  ],
  "dist-tags": {
    "latest": "2.0.2"
  },
  "author": {
    "name": "Peter Newnham"
  },
  "_rev": "18-2e17ab91f8aae947fc12d79897106b0c",
  "description": "Parse HTML into React components",
  "readme": "# React HTML Parser\n\nA utility for converting HTML strings into [React](https://facebook.github.io/react/) components. Avoids the use of dangerouslySetInnerHTML and converts standard HTML elements, attributes and inline styles into their React equivalents.\n\n[Try the Live Demo](https://wrakky.github.io/react-html-parser)\n\n[![Travis branch](https://img.shields.io/travis/wrakky/react-html-parser/master.svg)](https://travis-ci.org/wrakky/react-html-parser)\n[![Coveralls](https://img.shields.io/coveralls/wrakky/react-html-parser.svg)](https://coveralls.io/github/wrakky/react-html-parser)\n[![npm](https://img.shields.io/npm/v/react-html-parser.svg)](https://www.npmjs.com/package/react-html-parser)\n[![Downloads](https://img.shields.io/npm/dw/react-html-parser.svg)](https://www.npmjs.com/package/react-html-parser)\n[![David](https://img.shields.io/david/wrakky/react-html-parser.svg)](https://david-dm.org/wrakky/react-html-parser)\n\n## Install\n\n```bash\nnpm install react-html-parser\n# or\nyarn add react-html-parser\n```\n\n## Usage\n\n```javascript\nimport React from 'react';\nimport ReactHtmlParser, { processNodes, convertNodeToElement, htmlparser2 } from 'react-html-parser';\n\nclass HtmlComponent extends React.Component {\n  render() {\n    const html = '<div>Example HTML string</div>';\n    return <div>{ ReactHtmlParser(html) }</div>;\n  }\n}\n```\n\n## API\n\n### `function ReactHtmlParser(html, [options])`\nTakes an HTML string and returns equivalent React elements\n\n#### Usage\n```js\nimport ReactHtmlParser from 'react-html-parser';\n```\n#### Arguments\n- `html`: The HTML string to parse\n- `options`: Options object\n  - decodeEntities=true *(boolean)*: Whether to decode html entities (defaults to true)\n  - transform *(function)*: Transform function that is applied to every node\n  - preprocessNodes *(function)*: Pre-process the nodes generated by `htmlparser2`\n\n#### Transform Function\nThe transform function will be called for every node that is parsed by the library.\n\n`function transform(node, index)`\n##### Arguments\n- `node`: The node being parsed. This is the [htmlparser2](https://github.com/fb55/htmlparser2) node object. Full details can be found on their project page but important properties are:\n  - `type` (string): The type of node *(tag, text, style etc)*\n  - `name` (string): The name of the node\n  - `children` (array): Array of children nodes\n  - `next` (node): The node's next sibling\n  - `prev` (node): The node's previous sibling\n  - `parent` (node): The node's parent\n  - `data` (string): The text content, if the `type` is text\n- `index` (number): The index of the node in relation to it's parent\n\n#### Return Types\n`return null`\nReturning null will prevent the node and all of it's children from being rendered.\n```js\nfunction transform(node) {\n  // do not render any <span> tags\n  if (node.type === 'tag' && node.name === 'span') {\n    return null;\n  }\n}\n```\n`return undefined`\nIf the function does not return anything, or returns undefined, then the default behaviour will occur and the parser will continue was usual.\n\n`return React element`\nReact elements can be returned directly\n```js\nimport React from 'react';\nfunction transform(node) {\n  if (node.type === 'tag' && node.name === 'b') {\n    return <div>This was a bold tag</div>;\n  }\n}\n```\n\n#### preprocessNodes Function\nAllows pre-processing the nodes generated from the html by `htmlparser2` before being passed to the library and converted to React elements.\n\n`function preprocessNodes(nodes)`\n##### Arguments\n- `nodes`: The entire node tree generated by `htmlparser2`.\n\n##### Return type\nThe `preprocessNodes` function should return a valid `htmlparser2` node tree.\n\n### `function convertNodeToElement(node, index, transform)`\nProcesses a node and returns the React element to be rendered. This function can be used in conjunction with the previously described `transform` function to continue to process a node after modifying it.\n\n#### Usage\n```js\nimport { convertNodeToElement } from 'react-html-parser';\n```\n#### Arguments\n- `node`: The node to process\n- `index` (number): The index of the node in relation to it's parent\n- `transform`: The transform function as described above\n\n```js\nimport { convertNodeToElement } from 'react-html-parser';\nfunction transform(node, index) {\n  // convert <ul> to <ol>\n  if (node.type === 'tag' && node.name === 'ul') {\n    node.name = 'ol';\n    return convertNodeToElement(node, index, transform);\n  }\n}\n```\n\n### `htmlparser2`\nThe library exposes the `htmlparser2` library it uses. This allows consumers\nto use it without having to add it as a separate dependency.\n\nSee https://github.com/fb55/htmlparser2 for full details.\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/wrakky/react-html-parser.git"
  },
  "users": {
    "wrakky": true,
    "yonie": true,
    "majioa": true,
    "taseenb": true,
    "ayoola_moore": true,
    "bsdllc": true
  },
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/wrakky/react-html-parser/issues"
  },
  "versions": {
    "1.0.0": {
      "name": "react-html-parser",
      "version": "1.0.0",
      "description": "Parse HTML into React components",
      "main": "lib/index.js",
      "jsnext:main": "src/index.js",
      "scripts": {
        "clean": "rimraf coverage dist lib",
        "check": "npm run lint && npm run test",
        "test": "karma start --single-run",
        "test:watch": "karma start",
        "lint": "eslint src test",
        "build": "npm run build:lib && npm run build:umd && npm run build:umd:min",
        "build:lib": "rimraf lib && babel ./src -d lib",
        "build:umd": "webpack src/index.js dist/react-html-parser.js --config webpack.config.development.js",
        "build:umd:min": "webpack src/index.js -p dist/react-html-parser.min.js --config webpack.config.production.js",
        "prerelease": "npm run clean && npm run check",
        "release": "npm run build",
        "postrelease": "git push --follow-tags",
        "release:patch": "npm version patch && npm run release",
        "release:minor": "npm version minor && npm run release",
        "release:major": "npm version major && npm run release"
      },
      "keywords": [
        "react",
        "html"
      ],
      "author": {
        "name": "Peter Newnham"
      },
      "license": "MIT",
      "devDependencies": {
        "babel": "^6.3.26",
        "babel-cli": "^6.4.0",
        "babel-core": "^6.4.0",
        "babel-loader": "^6.2.1",
        "babel-plugin-transform-object-assign": "^6.3.13",
        "babel-preset-es2015": "^6.3.13",
        "babel-preset-react": "^6.3.13",
        "eslint-plugin-react": "3.15.0",
        "html-webpack-plugin": "^1.7.0",
        "inject-loader": "2.0.1",
        "isparta-loader": "^2.0.0",
        "jasmine-core": "^2.4.1",
        "json-loader": "^0.5.4",
        "karma": "^0.13.19",
        "karma-coverage": "^0.5.3",
        "karma-jasmine": "^0.3.6",
        "karma-phantomjs-shim": "^1.2.0",
        "karma-spec-reporter": "0.0.23",
        "karma-webpack": "^1.7.0",
        "phantomjs": "^1.9.19",
        "react": "^0.14.6",
        "react-addons-test-utils": "^0.14.6",
        "react-dom": "^0.14.6",
        "rimraf": "^2.5.0",
        "webpack": "^1.12.11",
        "webpack-dev-server": "^1.14.1"
      },
      "dependencies": {
        "htmlparser2": "^3.9.0"
      },
      "peerDependencies": {
        "react": "^0.13.0 || ^0.14.0"
      },
      "gitHead": "4a967688c452916b9acfe1618cc7863e051c9232",
      "_id": "react-html-parser@1.0.0",
      "_shasum": "b6df75cd087747eaae1209809b57771b1468e35d",
      "_from": ".",
      "_npmVersion": "3.5.3",
      "_nodeVersion": "4.1.1",
      "_npmUser": {
        "name": "wrakky",
        "email": "pete@blarg.co.uk"
      },
      "dist": {
        "shasum": "b6df75cd087747eaae1209809b57771b1468e35d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/react-html-parser/-/react-html-parser-1.0.0.tgz",
        "integrity": "sha512-yZz6u3zsCGiokpLeQaj61vdIbvd6TV4JzVGZ20p6U3b+8L6Ll0UYXN2PQef+iw65BU6I3vWBWb7nOc+69ZKegg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIF6Rozo1R8GEqHJ9WSYsxiB6viXXs0VL+j/uqablOxv6AiEAnHWviJr841vI22PnHkkRy9oENSLvZr+zYmzKrElmqng="
          }
        ]
      },
      "maintainers": [
        {
          "name": "wrakky",
          "email": "pete@blarg.co.uk"
        }
      ]
    },
    "1.0.1": {
      "name": "react-html-parser",
      "version": "1.0.1",
      "description": "Parse HTML into React components",
      "main": "lib/index.js",
      "jsnext:main": "src/index.js",
      "scripts": {
        "clean": "rimraf coverage dist lib",
        "check": "npm run lint && npm run test",
        "test": "karma start --single-run",
        "test:watch": "karma start",
        "lint": "eslint src test",
        "build": "npm run build:lib && npm run build:umd && npm run build:umd:min",
        "build:lib": "rimraf lib && babel ./src -d lib",
        "build:umd": "webpack src/index.js dist/react-html-parser.js --config webpack.config.development.js",
        "build:umd:min": "webpack src/index.js -p dist/react-html-parser.min.js --config webpack.config.production.js",
        "prerelease": "npm run clean && npm run check",
        "release": "npm run build",
        "postrelease": "git push --follow-tags && npm publish",
        "release:patch": "npm version patch && npm run release",
        "release:minor": "npm version minor && npm run release",
        "release:major": "npm version major && npm run release"
      },
      "keywords": [
        "react",
        "html",
        "htmlparser",
        "htmlparser2",
        "inner html",
        "dangerouslySetInnerHTML"
      ],
      "author": {
        "name": "Peter Newnham"
      },
      "license": "MIT",
      "devDependencies": {
        "babel": "^6.3.26",
        "babel-cli": "^6.4.0",
        "babel-core": "^6.4.0",
        "babel-loader": "^6.2.1",
        "babel-plugin-transform-object-assign": "^6.3.13",
        "babel-preset-es2015": "^6.3.13",
        "babel-preset-react": "^6.3.13",
        "eslint": "^1.10.3",
        "eslint-plugin-react": "3.15.0",
        "html-webpack-plugin": "^1.7.0",
        "inject-loader": "2.0.1",
        "isparta-loader": "^2.0.0",
        "jasmine-core": "^2.4.1",
        "json-loader": "^0.5.4",
        "karma": "^0.13.19",
        "karma-coverage": "^0.5.3",
        "karma-jasmine": "^0.3.6",
        "karma-phantomjs-launcher": "^0.2.3",
        "karma-phantomjs-shim": "^1.2.0",
        "karma-spec-reporter": "0.0.23",
        "karma-webpack": "^1.7.0",
        "phantomjs": "^1.9.19",
        "react": "^0.14.6",
        "react-addons-test-utils": "^0.14.6",
        "react-dom": "^0.14.6",
        "rimraf": "^2.5.0",
        "webpack": "^1.12.11",
        "webpack-dev-server": "^1.14.1"
      },
      "dependencies": {
        "htmlparser2": "^3.9.0"
      },
      "peerDependencies": {
        "react": "^0.13.0 || ^0.14.0"
      },
      "gitHead": "029983ec04883110989191d3e0ed8e1ada7b0394",
      "_id": "react-html-parser@1.0.1",
      "_shasum": "94507e0fd114ea8f1a70cd798ff6e86430b61ae9",
      "_from": ".",
      "_npmVersion": "3.5.3",
      "_nodeVersion": "4.1.1",
      "_npmUser": {
        "name": "wrakky",
        "email": "pete@blarg.co.uk"
      },
      "dist": {
        "shasum": "94507e0fd114ea8f1a70cd798ff6e86430b61ae9",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/react-html-parser/-/react-html-parser-1.0.1.tgz",
        "integrity": "sha512-qxmRCPdnu6CNmjqa1x+K+2kdz8/WxybeLTrM8E8NOlObm3nKBjohv8Ad83o53qR0amHBQDEOzgAIjE6n1UC3dg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIGZH1fLWqFYg/Q/88n7Hl1MQvadfd+Mcz7jn44MFDC7VAiAERFMDWBQY70D5Iep5Bw89g5QTK9NXt64oZTXJKxdjCw=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "wrakky",
          "email": "pete@blarg.co.uk"
        }
      ]
    },
    "1.0.2": {
      "name": "react-html-parser",
      "version": "1.0.2",
      "description": "Parse HTML into React components",
      "main": "lib/index.js",
      "jsnext:main": "src/index.js",
      "scripts": {
        "clean": "rimraf coverage dist lib",
        "check": "npm run lint && npm run test",
        "test": "karma start --single-run",
        "test:watch": "karma start",
        "lint": "eslint src test demo/src",
        "build": "npm run build:lib && npm run build:umd && npm run build:umd:min",
        "build:lib": "rimraf lib && babel ./src -d lib",
        "build:umd": "webpack src/index.js dist/react-html-parser.js --config webpack.config.development.js",
        "build:umd:min": "webpack src/index.js -p dist/react-html-parser.min.js --config webpack.config.production.js",
        "prerelease": "npm run clean && npm run check",
        "release": "npm run build",
        "postrelease": "git push --follow-tags && npm publish",
        "release:patch": "npm version patch && npm run release",
        "release:minor": "npm version minor && npm run release",
        "release:major": "npm version major && npm run release",
        "demo:clean": "rimraf demo/dist",
        "demo:build": "cd demo && npm run build",
        "demo:push": "cd demo/dist && git init && git commit --allow-empty -m 'update demo' && git checkout -b gh-pages && git add . && git commit -am 'update demo' && git push git@github.com:wrakky/react-html-parser gh-pages --force",
        "demo:publish": "npm run demo:clean && npm run demo:build && npm run demo:push"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wrakky/react-html-parser.git"
      },
      "keywords": [
        "react",
        "html",
        "htmlparser",
        "htmlparser2",
        "inner html",
        "dangerouslySetInnerHTML"
      ],
      "author": {
        "name": "Peter Newnham"
      },
      "license": "MIT",
      "devDependencies": {
        "babel": "^6.3.26",
        "babel-cli": "^6.4.0",
        "babel-core": "^6.4.0",
        "babel-loader": "^6.2.1",
        "babel-plugin-transform-object-assign": "^6.3.13",
        "babel-preset-es2015": "^6.3.13",
        "babel-preset-react": "^6.3.13",
        "coveralls": "^2.11.6",
        "eslint": "^1.10.3",
        "eslint-plugin-react": "3.15.0",
        "html-webpack-plugin": "^1.7.0",
        "inject-loader": "2.0.1",
        "isparta-loader": "^2.0.0",
        "jasmine-core": "^2.4.1",
        "json-loader": "^0.5.4",
        "karma": "^0.13.19",
        "karma-coverage": "^0.5.3",
        "karma-jasmine": "^0.3.6",
        "karma-phantomjs-launcher": "^0.2.3",
        "karma-phantomjs-shim": "^1.2.0",
        "karma-spec-reporter": "0.0.23",
        "karma-webpack": "^1.7.0",
        "phantomjs": "^1.9.19",
        "react": "^0.14.6",
        "react-addons-test-utils": "^0.14.6",
        "react-dom": "^0.14.6",
        "rimraf": "^2.5.0",
        "webpack": "^1.12.11",
        "webpack-dev-server": "^1.14.1"
      },
      "dependencies": {
        "htmlparser2": "^3.9.0"
      },
      "peerDependencies": {
        "react": "^0.13.0 || ^0.14.0"
      },
      "gitHead": "86d876c33880bdf54c03d84948d7d36539f5b3ed",
      "bugs": {
        "url": "https://github.com/wrakky/react-html-parser/issues"
      },
      "homepage": "https://github.com/wrakky/react-html-parser#readme",
      "_id": "react-html-parser@1.0.2",
      "_shasum": "7b0992e49087af81db647ed9184ed4d23ade212d",
      "_from": ".",
      "_npmVersion": "3.5.3",
      "_nodeVersion": "4.1.1",
      "_npmUser": {
        "name": "wrakky",
        "email": "pete@blarg.co.uk"
      },
      "dist": {
        "shasum": "7b0992e49087af81db647ed9184ed4d23ade212d",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/react-html-parser/-/react-html-parser-1.0.2.tgz",
        "integrity": "sha512-cxalRahPd5ht5b6s5yq+zl3rQqf6Sq2XxRVu/rHa5UedDX+afLKoSQfINqvz2iDoRBE3FDNyV0fiqyL+2ac64g==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIG+E0WMrsVeLidPXlGglUlVeJmcXStN4Sk91EK2ePSovAiEAu3z81fzpJsWvjGi8VgcSLm0JC7ZO4uhO3FRASnK4Mdo="
          }
        ]
      },
      "maintainers": [
        {
          "name": "wrakky",
          "email": "pete@blarg.co.uk"
        }
      ]
    },
    "1.0.3": {
      "name": "react-html-parser",
      "version": "1.0.3",
      "description": "Parse HTML into React components",
      "main": "lib/index.js",
      "jsnext:main": "src/index.js",
      "scripts": {
        "clean": "rimraf coverage dist lib",
        "check": "npm run lint && npm run test",
        "test": "karma start --single-run",
        "test:watch": "karma start",
        "lint": "eslint src test demo/src",
        "build": "npm run build:lib && npm run build:umd && npm run build:umd:min",
        "build:lib": "rimraf lib && babel ./src -d lib",
        "build:umd": "webpack src/index.js dist/react-html-parser.js --config webpack.config.development.js",
        "build:umd:min": "webpack src/index.js -p dist/react-html-parser.min.js --config webpack.config.production.js",
        "prerelease": "npm run clean && npm run check",
        "release": "npm run build",
        "postrelease": "git push --follow-tags && npm publish",
        "release:patch": "npm version patch && npm run release",
        "release:minor": "npm version minor && npm run release",
        "release:major": "npm version major && npm run release",
        "demo:clean": "rimraf demo/dist",
        "demo:build": "cd demo && npm run build",
        "demo:push": "cd demo/dist && git init && git commit --allow-empty -m 'update demo' && git checkout -b gh-pages && git add . && git commit -am 'update demo' && git push git@github.com:wrakky/react-html-parser gh-pages --force",
        "demo:publish": "npm run demo:clean && npm run demo:build && npm run demo:push"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wrakky/react-html-parser.git"
      },
      "keywords": [
        "react",
        "html",
        "htmlparser",
        "htmlparser2",
        "inner html",
        "dangerouslySetInnerHTML"
      ],
      "author": {
        "name": "Peter Newnham"
      },
      "license": "MIT",
      "devDependencies": {
        "babel": "^6.5.2",
        "babel-cli": "^6.8.0",
        "babel-core": "^6.8.0",
        "babel-loader": "^6.2.4",
        "babel-plugin-transform-object-assign": "^6.8.0",
        "babel-preset-es2015": "^6.6.0",
        "babel-preset-react": "^6.5.0",
        "coveralls": "^2.11.9",
        "eslint": "^2.10.1",
        "eslint-plugin-react": "^5.1.1",
        "inject-loader": "^2.0.1",
        "isparta-loader": "^2.0.0",
        "jasmine-core": "^2.4.1",
        "json-loader": "^0.5.4",
        "karma": "^0.13.22",
        "karma-coverage": "^1.0.0",
        "karma-jasmine": "^1.0.2",
        "karma-phantomjs-launcher": "^1.0.0",
        "karma-phantomjs-shim": "^1.4.0",
        "karma-spec-reporter": "^0.0.26",
        "karma-webpack": "^1.7.0",
        "phantomjs-prebuilt": "^2.1.7",
        "react": "^15.0.2",
        "react-addons-test-utils": "^15.0.2",
        "react-dom": "^15.0.2",
        "rimraf": "^2.5.2",
        "webpack": "^1.13.0"
      },
      "dependencies": {
        "htmlparser2": "^3.9.0"
      },
      "peerDependencies": {
        "react": "^0.13.0 || ^0.14.0 || ^15.0.0"
      },
      "gitHead": "404ed57361df33dd1990f4b2cfa336e4dfbd96fb",
      "bugs": {
        "url": "https://github.com/wrakky/react-html-parser/issues"
      },
      "homepage": "https://github.com/wrakky/react-html-parser#readme",
      "_id": "react-html-parser@1.0.3",
      "_shasum": "28358f0cc11eee3bf490f8ab6c9c31bd2c806790",
      "_from": ".",
      "_npmVersion": "3.6.0",
      "_nodeVersion": "5.7.1",
      "_npmUser": {
        "name": "wrakky",
        "email": "pete@blarg.co.uk"
      },
      "dist": {
        "shasum": "28358f0cc11eee3bf490f8ab6c9c31bd2c806790",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/react-html-parser/-/react-html-parser-1.0.3.tgz",
        "integrity": "sha512-lvc6NUPlS3e+EgQlLCxn9DE4eJqqlLBkDkYvqrqVS2TH2MG03rAmAgOxLKYIlQr9FJe2qURjk/5YtK6//27rNg==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIHkJWasiZLJ02n+Gsr7VuLo57bt6xnnOceJDB6lE5D4mAiBDOvTowXcRT8pSk8pbiK4P8xN5waMyEcENF4HqQ6k5PQ=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "wrakky",
          "email": "pete@blarg.co.uk"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-16-east.internal.npmjs.com",
        "tmp": "tmp/react-html-parser-1.0.3.tgz_1463358120256_0.04078209772706032"
      }
    },
    "2.0.0": {
      "name": "react-html-parser",
      "version": "2.0.0",
      "description": "Parse HTML into React components",
      "main": "lib/index.js",
      "jsnext:main": "src/index.js",
      "scripts": {
        "clean": "rimraf coverage dist lib",
        "check": "npm run lint && npm run test",
        "test": "karma start --single-run",
        "test:watch": "karma start",
        "lint": "eslint src test demo/src",
        "build": "npm run build:lib && npm run build:umd && npm run build:umd:min",
        "build:lib": "rimraf lib && babel ./src -d lib",
        "build:umd": "webpack src/index.js dist/react-html-parser.js --config webpack.config.development.js",
        "build:umd:min": "webpack src/index.js -p dist/react-html-parser.min.js --config webpack.config.production.js",
        "prerelease": "npm run clean && npm run check",
        "release": "npm run build",
        "postrelease": "git push --follow-tags && npm publish",
        "release:patch": "npm version patch && npm run release",
        "release:minor": "npm version minor && npm run release",
        "release:major": "npm version major && npm run release",
        "demo:clean": "rimraf demo/dist",
        "demo:dev": "cd demo && node ./server.js",
        "demo:build": "cd demo && npm run build",
        "demo:push": "cd demo/dist && git init && git commit --allow-empty -m 'update demo' && git checkout -b gh-pages && git add . && git commit -am 'update demo' && git push git@github.com:wrakky/react-html-parser gh-pages --force",
        "demo:publish": "npm run demo:clean && npm run demo:build && npm run demo:push"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wrakky/react-html-parser.git"
      },
      "keywords": [
        "react",
        "html",
        "htmlparser",
        "htmlparser2",
        "inner html",
        "dangerouslySetInnerHTML"
      ],
      "author": {
        "name": "Peter Newnham"
      },
      "license": "MIT",
      "devDependencies": {
        "babel": "^6.5.2",
        "babel-cli": "^6.8.0",
        "babel-core": "^6.8.0",
        "babel-loader": "^6.2.4",
        "babel-plugin-transform-object-assign": "^6.8.0",
        "babel-plugin-transform-object-rest-spread": "^6.23.0",
        "babel-preset-es2015": "^6.6.0",
        "babel-preset-react": "^6.5.0",
        "coveralls": "^2.11.9",
        "eslint": "^2.10.1",
        "eslint-plugin-react": "^5.1.1",
        "inject-loader": "^2.0.1",
        "isparta-loader": "^2.0.0",
        "jasmine-core": "^2.4.1",
        "json-loader": "^0.5.4",
        "karma": "^0.13.22",
        "karma-coverage": "^1.0.0",
        "karma-jasmine": "^1.0.2",
        "karma-phantomjs-launcher": "^1.0.0",
        "karma-phantomjs-shim": "^1.4.0",
        "karma-spec-reporter": "^0.0.26",
        "karma-webpack": "^1.7.0",
        "phantomjs-prebuilt": "^2.1.7",
        "react": "^15.0.2",
        "react-dom": "^15.0.2",
        "rimraf": "^2.5.2",
        "webpack": "^1.13.0"
      },
      "dependencies": {
        "htmlparser2": "^3.9.0"
      },
      "peerDependencies": {
        "react": "^0.14.0 || ^15.0.0 || ^16.0.0-0"
      },
      "gitHead": "28a4170e0b6ab2b4b9cff1d2c2e73c343c2aa809",
      "bugs": {
        "url": "https://github.com/wrakky/react-html-parser/issues"
      },
      "homepage": "https://github.com/wrakky/react-html-parser#readme",
      "_id": "react-html-parser@2.0.0",
      "_npmVersion": "5.3.0",
      "_nodeVersion": "8.3.0",
      "_npmUser": {
        "name": "wrakky",
        "email": "pete@blarg.co.uk"
      },
      "dist": {
        "integrity": "sha512-orF9bNtzLHvjUUjLvw4bx9oJfo1b6AmrVsC8vZew46XaQSMq4hz4KxqKHzfiUtXOsqhFvsnlnJv5/n2JUrOk1Q==",
        "shasum": "146dd5f7f80b213934c385ee2b1fcf42c79eca33",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/react-html-parser/-/react-html-parser-2.0.0.tgz",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIBtt48VwNuNuVc99ZevworE6e7Z0BjkKYJspX+CvPhvfAiEA4mBRbafe1IkD4hsLi4EWYvYmcpf3zUaQQQfQsZgWLvI="
          }
        ]
      },
      "maintainers": [
        {
          "name": "wrakky",
          "email": "pete@blarg.co.uk"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/react-html-parser-2.0.0.tgz_1503444334676_0.6334879843052477"
      }
    },
    "2.0.1": {
      "name": "react-html-parser",
      "version": "2.0.1",
      "description": "Parse HTML into React components",
      "main": "lib/index.js",
      "jsnext:main": "src/index.js",
      "scripts": {
        "clean": "rimraf coverage dist lib",
        "check": "npm run lint && npm run test",
        "test": "karma start --single-run",
        "test:watch": "karma start",
        "lint": "eslint src test demo/src",
        "build": "npm run build:lib && npm run build:umd && npm run build:umd:min",
        "build:lib": "rimraf lib && babel ./src -d lib",
        "build:umd": "webpack src/index.js dist/react-html-parser.js --config webpack.config.development.js",
        "build:umd:min": "webpack src/index.js -p dist/react-html-parser.min.js --config webpack.config.production.js",
        "prerelease": "npm run clean && npm run check",
        "release": "npm run build",
        "postrelease": "git push --follow-tags && npm publish",
        "release:patch": "npm version patch && npm run release",
        "release:minor": "npm version minor && npm run release",
        "release:major": "npm version major && npm run release",
        "demo:clean": "rimraf demo/dist",
        "demo:dev": "cd demo && node ./server.js",
        "demo:build": "cd demo && npm run build",
        "demo:push": "cd demo/dist && git init && git commit --allow-empty -m 'update demo' && git checkout -b gh-pages && git add . && git commit -am 'update demo' && git push git@github.com:wrakky/react-html-parser gh-pages --force",
        "demo:publish": "npm run demo:clean && npm run demo:build && npm run demo:push"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wrakky/react-html-parser.git"
      },
      "keywords": [
        "react",
        "html",
        "htmlparser",
        "htmlparser2",
        "inner html",
        "dangerouslySetInnerHTML"
      ],
      "author": {
        "name": "Peter Newnham"
      },
      "license": "MIT",
      "devDependencies": {
        "babel": "^6.5.2",
        "babel-cli": "^6.8.0",
        "babel-core": "^6.8.0",
        "babel-loader": "^6.2.4",
        "babel-plugin-transform-object-assign": "^6.8.0",
        "babel-plugin-transform-object-rest-spread": "^6.23.0",
        "babel-preset-es2015": "^6.6.0",
        "babel-preset-react": "^6.5.0",
        "coveralls": "^2.11.9",
        "eslint": "^2.10.1",
        "eslint-plugin-react": "^5.1.1",
        "inject-loader": "^2.0.1",
        "isparta-loader": "^2.0.0",
        "jasmine-core": "^2.4.1",
        "json-loader": "^0.5.4",
        "karma": "^0.13.22",
        "karma-coverage": "^1.0.0",
        "karma-jasmine": "^1.0.2",
        "karma-phantomjs-launcher": "^1.0.0",
        "karma-phantomjs-shim": "^1.4.0",
        "karma-spec-reporter": "^0.0.26",
        "karma-webpack": "^1.7.0",
        "phantomjs-prebuilt": "^2.1.7",
        "react": "^16.0.0",
        "react-dom": "^16.0.0",
        "rimraf": "^2.5.2",
        "webpack": "^1.13.0"
      },
      "dependencies": {
        "htmlparser2": "^3.9.0"
      },
      "peerDependencies": {
        "react": "^0.14.0 || ^15.0.0 || ^16.0.0-0"
      },
      "gitHead": "3cc853783582feda202d4b85445f9ff8e21f89b3",
      "bugs": {
        "url": "https://github.com/wrakky/react-html-parser/issues"
      },
      "homepage": "https://github.com/wrakky/react-html-parser#readme",
      "_id": "react-html-parser@2.0.1",
      "_npmVersion": "5.4.2",
      "_nodeVersion": "8.3.0",
      "_npmUser": {
        "name": "wrakky",
        "email": "pete@blarg.co.uk"
      },
      "dist": {
        "integrity": "sha512-dTd0iK+DpcIJ68hVMQHXdG8qi0gzuPTCoqV3l2h+CFBEO4WEH7TmjIgjputJI8Ry95Tu9XTjGnyP5Z+MMl35Rw==",
        "shasum": "726cf5f5767e6eb82b17f79ea77411c923c59ebf",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/react-html-parser/-/react-html-parser-2.0.1.tgz",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIH8+jwH7uBcjYJNjXz9X0RBv+vPglqlDQ171xknK0StmAiEA1FIgZlKlRT3oGTsPEdb8w5z5pM1w69ZEj4eCsYRG8bM="
          }
        ]
      },
      "maintainers": [
        {
          "name": "wrakky",
          "email": "pete@blarg.co.uk"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/react-html-parser-2.0.1.tgz_1506900396845_0.6031495758797973"
      }
    },
    "2.0.2": {
      "name": "react-html-parser",
      "version": "2.0.2",
      "description": "Parse HTML into React components",
      "main": "lib/index.js",
      "jsnext:main": "src/index.js",
      "scripts": {
        "clean": "rimraf coverage dist lib",
        "check": "npm run lint && npm run test",
        "test": "karma start --single-run",
        "test:watch": "karma start",
        "lint": "eslint src test demo/src",
        "build": "npm run build:lib && npm run build:umd && npm run build:umd:min",
        "build:lib": "rimraf lib && babel ./src -d lib",
        "build:umd": "webpack src/index.js dist/react-html-parser.js --config webpack.config.development.js",
        "build:umd:min": "webpack src/index.js -p dist/react-html-parser.min.js --config webpack.config.production.js",
        "prerelease": "npm run clean && npm run check",
        "release": "npm run build",
        "postrelease": "git push --follow-tags && npm publish",
        "release:patch": "npm version patch && npm run release",
        "release:minor": "npm version minor && npm run release",
        "release:major": "npm version major && npm run release",
        "demo:clean": "rimraf demo/dist",
        "demo:dev": "cd demo && node ./server.js",
        "demo:build": "cd demo && npm run build",
        "demo:push": "cd demo/dist && git init && git commit --allow-empty -m 'update demo' && git checkout -b gh-pages && git add . && git commit -am 'update demo' && git push git@github.com:wrakky/react-html-parser gh-pages --force",
        "demo:publish": "npm run demo:clean && npm run demo:build && npm run demo:push"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/wrakky/react-html-parser.git"
      },
      "keywords": [
        "react",
        "html",
        "htmlparser",
        "htmlparser2",
        "inner html",
        "dangerouslySetInnerHTML"
      ],
      "author": {
        "name": "Peter Newnham"
      },
      "license": "MIT",
      "devDependencies": {
        "babel": "^6.5.2",
        "babel-cli": "^6.8.0",
        "babel-core": "^6.8.0",
        "babel-loader": "^6.2.4",
        "babel-plugin-transform-object-assign": "^6.8.0",
        "babel-plugin-transform-object-rest-spread": "^6.23.0",
        "babel-preset-es2015": "^6.6.0",
        "babel-preset-react": "^6.5.0",
        "coveralls": "^2.11.9",
        "eslint": "^2.10.1",
        "eslint-plugin-react": "^5.1.1",
        "inject-loader": "^2.0.1",
        "isparta-loader": "^2.0.0",
        "jasmine-core": "^2.4.1",
        "json-loader": "^0.5.4",
        "karma": "^0.13.22",
        "karma-coverage": "^1.0.0",
        "karma-es6-shim": "^1.0.0",
        "karma-jasmine": "^1.0.2",
        "karma-phantomjs-launcher": "^1.0.0",
        "karma-phantomjs-shim": "^1.4.0",
        "karma-spec-reporter": "^0.0.26",
        "karma-webpack": "^1.7.0",
        "phantomjs-prebuilt": "^2.1.7",
        "react": "^16.0.0",
        "react-dom": "^16.0.0",
        "rimraf": "^2.5.2",
        "webpack": "^1.13.0"
      },
      "dependencies": {
        "htmlparser2": "^3.9.0"
      },
      "peerDependencies": {
        "react": "^0.14.0 || ^15.0.0 || ^16.0.0-0"
      },
      "gitHead": "f28597ee0d010d4142d0077c911868de69535efd",
      "bugs": {
        "url": "https://github.com/wrakky/react-html-parser/issues"
      },
      "homepage": "https://github.com/wrakky/react-html-parser#readme",
      "_id": "react-html-parser@2.0.2",
      "_npmVersion": "5.5.1",
      "_nodeVersion": "8.9.1",
      "_npmUser": {
        "name": "wrakky",
        "email": "pete@blarg.co.uk"
      },
      "dist": {
        "integrity": "sha512-XeerLwCVjTs3njZcgCOeDUqLgNIt/t+6Jgi5/qPsO/krUWl76kWKXMeVs2LhY2gwM6X378DkhLjur0zUQdpz0g==",
        "shasum": "6dbe1ddd2cebc1b34ca15215158021db5fc5685e",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/react-html-parser/-/react-html-parser-2.0.2.tgz",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEYCIQCFyNM8M2yoCFs9Ycna7U5WwgxFZyvi6XhIA+mQOdf+0wIhALupxXO43xmlo5+glsG4MEXouKHrYr8OIL117ZcMighk"
          }
        ]
      },
      "maintainers": [
        {
          "name": "wrakky",
          "email": "pete@blarg.co.uk"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/react-html-parser-2.0.2.tgz_1511999682520_0.9959713721182197"
      }
    }
  },
  "name": "react-html-parser",
  "time": {
    "modified": "2026-09-08T10:26:23.015Z",
    "created": "2016-01-19T00:14:41.587Z",
    "1.0.0": "2016-01-19T00:14:41.587Z",
    "1.0.1": "2016-01-19T00:56:26.897Z",
    "1.0.2": "2016-01-29T23:53:49.865Z",
    "1.0.3": "2016-05-16T00:22:02.386Z",
    "2.0.0": "2017-08-22T23:25:36.533Z",
    "2.0.1": "2017-10-01T23:26:38.073Z",
    "2.0.2": "2017-11-29T23:54:44.178Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/wrakky/react-html-parser#readme"
}