{"categories":[{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/7"},{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http/3"},{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/2"},{"label":"Dynamic Content","url":"https://skillfed.io/packages/category/internet-www-http-dynamic-content"},{"label":"Site Management","url":"https://skillfed.io/packages/category/internet-www-http-site-management"},{"label":"Word Processors","url":"https://skillfed.io/packages/category/text-editors-word-processors"}],"enrichment":{"capability":"Converts Draft.js ContentState (a rich text editor format) to HTML, with configurable block and inline style mappings and support for nested lists and overlapping styles.","skillfed_tags":["draft-js","wagtail-integration","html-generation"],"use_cases":["Render Draft.js editor content to HTML on a Wagtail or Django backend without re-implementing the editor in Python.","Export rich text from a Draft.js-based frontend editor to a database or file system as semantic HTML.","Generate server-side HTML previews of Draft.js content before it is published or stored.","Customize HTML output by mapping Draft.js blocks and styles to domain-specific HTML elements or CSS classes.","Build a content pipeline where Draft.js ContentState is processed, validated, and converted to HTML in a Python service."],"what_it_does":"draftjs_exporter is a Python library that translates Draft.js ContentState\u2014the internal representation used by the Draft.js React editor\u2014into HTML. Draft.js stores rich text in its own format rather than as HTML, so this exporter bridges that gap for Python backends, particularly in Wagtail/Django environments where you need to render Draft.js content server-side.\n\nThe library provides sensible defaults for common HTML elements (paragraphs, lists, emphasis, links) but is designed to be extended: you can define custom block and inline style maps, add decorators to transform line breaks, attach arbitrary attributes to elements, and create React-like custom components. It handles overlapping inline styles and nested lists automatically, converts entity data types (integers, booleans, style objects) to valid HTML attributes, and includes static type annotations throughout.","worth_installing":"Yes. The package is actively maintained, has no security vulnerabilities, zero runtime dependencies, and a permissive MIT license. Install it if you need to convert Draft.js ContentState to HTML in a Python environment\u2014particularly in Wagtail or Django projects. The low friction and stable API make it a straightforward choice for this specific use case."},"id":"draftjs-exporter","links":{"html":"https://skillfed.io/packages/draftjs-exporter","md":"https://skillfed.io/packages/draftjs-exporter.md","pypi":"https://pypi.org/project/draftjs-exporter/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-08-13","license_spdx":"MIT","license_treatment":"permissive","name":"draftjs_exporter","python_support":"supports_current","summary":"Library to convert rich text from Draft.js raw ContentState to HTML"},"popularity":{"monthly_downloads":999142,"position":4541,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"7.1.0"}
