0.0.6 • Published 3 years ago

react-raw-html-parser v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

react-raw-html-parser

Version

Don't use any version below 1.0.0 in your project! As of now this package is not yet fully functional and breaking changes will be made.

Description

This package makes use of node-html-parser to render raw html as react-elements. This is supposed to help circumvent the use of dangerouslySetInnerHTML.

Features

This library aims to offer the following features:

  • Provide a parse-function that transforms raw html into a react-element.
    • Option to blacklist certain html-elements that are ignored while parsing.
    • Option to provide a render-function for specific element to replace the default parsing function.
  • Provide a component that wraps the parse-function to directly incorporate the parsing of raw html directly inside JSX.
    • All configuration options for the parse function can be passed using props.
    • A global configuration can be supplied to act as the default configuration for all components provided by this package.
0.0.6

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago