UNPKG

react-safe-html-parser

Version:

A secure, lightweight HTML parser for React with XSS protection and SSR support

12 lines 570 B
import type { ParserOptions } from '../types'; /** * Pure utility function to parse HTML without any React components * Safe for SSR and any environment where React isn't available */ export declare function parseHtmlToReactElement(html: string, options?: ParserOptions): React.ReactElement | null; /** * Parse HTML and return React elements array * Safe for SSR and any environment where React isn't available */ export declare function parseHtmlToReactElements(html: string, options?: ParserOptions): React.ReactElement[]; //# sourceMappingURL=parseHtml.d.ts.map