# draftjs_exporter > Library to convert rich text from Draft.js raw ContentState to HTML. # Usage documentation # [Draft.js exporter](https://pypi.org/project/draftjs_exporter/) > Library to convert rich text from Draft.js raw ContentState to HTML. ## Features This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html), and [measures performance](https://thib.me/python-memory-profiling-for-the-draft-js-exporter) and [code coverage](https://coveralls.io/github/wagtail/draftjs_exporter). Code is checked with [mypy](https://mypy.readthedocs.io/en/latest/index.html). - Extensive configuration of the generated HTML. - Default, extensible block & inline style maps for common HTML elements. - Convert line breaks to `
` elements with decorators. - Define any attribute in the block map – custom class names for elements. - React-like API to create custom components. - Automatic conversion of entity data to HTML attributes (int & boolean to string, style object to style string). - Nested lists (`
  • ` elements go inside `