{"library":"html-to-draftjs","type":"library","category":null,"description":"The `html-to-draftjs` library provides a utility function for converting raw HTML strings into a DraftJS `ContentState` object, which is suitable for direct use within a DraftJS editor. Currently stable at version `1.5.0`, this package is primarily designed to facilitate initial content loading or pasting functionalities in applications utilizing DraftJS, especially those built with `react-draft-wysiwyg`. While there's no explicit release cadence, the presence of recent version updates and a warning about a specific faulty version (1.2.0) indicates ongoing maintenance. Its key differentiator is its focused purpose for DraftJS, offering specific handling for HTML structures and an optional `customChunkRenderer` for extending its capabilities to handle custom HTML nodes or provide specific block types beyond standard conversions, particularly useful for atomic blocks.","language":"javascript","status":"active","version":"1.5.0","tags":["javascript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install html-to-draftjs","imports":["import htmlToDraft from 'html-to-draftjs';"]},{"cmd":"yarn add html-to-draftjs","imports":[]},{"cmd":"pnpm add html-to-draftjs","imports":[]}],"homepage":null,"github":"https://github.com/jpuri/html-to-draftjs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/html-to-draftjs","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-to-draftjs/compatibility"}}