{"library":"html-react-parser","type":"library","category":null,"description":"html-react-parser is a utility library designed to convert HTML strings into React elements, making it suitable for rendering dynamic content securely and efficiently within React applications. The current stable version is 6.0.1. The package maintains a fairly active release cadence, with frequent patch updates addressing dependency bumps and minor fixes, alongside major versions introducing breaking changes, typically related to underlying parser updates or build configurations. A key differentiator is its ability to operate seamlessly in both Node.js (server-side rendering) and browser environments. It provides powerful customization options like the `replace` and `transform` functions, allowing developers fine-grained control over how HTML nodes are converted and rendered, including advanced use cases like sanitization or replacing specific elements with custom React components. It ships with TypeScript types for improved developer experience.","language":"javascript","status":"active","version":"6.0.1","tags":["javascript","html-react-parser","html","react","parser","dom","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install html-react-parser","imports":["import parse from 'html-react-parser';","import type { HTMLReactParserOptions } from 'html-react-parser';","import type { Element } from 'html-react-parser';"]},{"cmd":"yarn add html-react-parser","imports":[]},{"cmd":"pnpm add html-react-parser","imports":[]}],"homepage":null,"github":"https://github.com/remarkablemark/html-react-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/html-react-parser","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/html-react-parser/compatibility"}}