Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 658 Bytes

README.md

File metadata and controls

29 lines (19 loc) · 658 Bytes

Burdy Web Utils

Powerful utilities to simplify usage of the Burdy on the web.

Instalation

npm i burdy-web-utils

Functionalities

richtextToHtml

A function for converting Richtext (DraftJS) Editor content to plain HTML.

This is forked version of draftjs-to-html draftjs-to-html created by Jyoti Puri.

Usage

import { richtextToHtml } from 'burdy-web-utils';

const rawContentState = BURDY_RICHTEXT_RESPONSE;

const markup = richtextToHtml(
  rawContentState
);