1 |
|
2 |
|
3 | import * as React from 'react';
|
4 | import { DomElement } from 'domhandler';
|
5 | import domToReact from './lib/dom-to-react';
|
6 | import htmlToDOM from 'html-dom-parser';
|
7 |
|
8 | export interface HTMLReactParserOptions {
|
9 |
|
10 | replace(domNode: DomElement): React.ReactElement | object | undefined | false;
|
11 | library?: object;
|
12 | }
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 | declare function HTMLReactParser(
|
22 | html: string,
|
23 | options?: HTMLReactParserOptions
|
24 | ):
|
25 | | string
|
26 | | React.DetailedReactHTMLElement<{}, HTMLElement>
|
27 | | Array<React.DetailedReactHTMLElement<{}, HTMLElement>>;
|
28 |
|
29 | export { DomElement, domToReact, htmlToDOM };
|
30 |
|
31 | export default HTMLReactParser;
|