{"library":"react-html-parser","type":"library","category":null,"description":"react-html-parser is a utility library designed for converting HTML strings into a tree of React components, thereby circumventing the security risks associated with directly using React's `dangerouslySetInnerHTML` property. The library, currently at version 2.0.2, provides a programmatic way to parse HTML content. While its release cadence has been infrequent since its v2.0.0 release in late 2017, it has received recent maintenance updates (v2.0.1 and v2.0.2 in 2020 and 2021 respectively), suggesting it's actively maintained for critical issues rather than undergoing active feature development. A key differentiator is its reliance on `htmlparser2` for robust HTML parsing and its extensive API, which includes `transform` and `preprocessNodes` functions. These functions allow developers fine-grained control over how nodes are processed and rendered, facilitating custom component mapping, attribute manipulation, and node filtering. It also automatically handles the conversion of standard HTML attributes and inline styles to their React equivalents.","language":"javascript","status":"maintenance","version":"2.0.2","tags":["javascript","react","html","htmlparser","htmlparser2","inner html","dangerouslySetInnerHTML"],"install":[{"cmd":"npm install react-html-parser","imports":["import { ReactHtmlParser } from 'react-html-parser';","import { convertNodeToElement } from 'react-html-parser';","import { htmlparser2 } from 'react-html-parser';"]},{"cmd":"yarn add react-html-parser","imports":[]},{"cmd":"pnpm add react-html-parser","imports":[]}],"homepage":null,"github":"https://github.com/wrakky/react-html-parser","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/react-html-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/react-html-parser/compatibility"},"provenance":{"verified_status":null,"verified_at":null,"last_verified":"Wed Jun 17","next_check":"Sat Jul 18","install_tag":null}}