🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

@wegotpop/draft-js-import-html

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wegotpop/draft-js-import-html

DraftJS: Import HTML to ContentState

1.3.9
latest
Version published
Weekly downloads
29
-53.23%
Maintainers
3
Weekly downloads
 
Created

DraftJS: Import HTML to ContentState

This is a module for DraftJS that will convert HTML to editor content.

It was extracted from React-RTE and placed into a separate module for more general use. Hopefully it can be helpful in your projects.

Installation

npm install --save draft-js-import-html

How to Use

import {stateFromHTML} from '@wegotpop/draft-js-import-html';
let contentState = stateFromHTML(html);

This project is still under development. If you want to help out, please open an issue to discuss or join us on Slack.

License

This software is BSD Licensed.

FAQs

Package last updated on 05 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts