UNPKG

react-safe-html-parser

Version:

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

16 lines 544 B
import React from 'react'; import type { HtmlParserProps } from './types'; /** * SSR/PDF-safe version: NO hooks, safe for all renderers */ export declare const HtmlParserStatic: React.FC<HtmlParserProps>; /** * React DOM only: Uses hooks for memoization. NOT for SSR/PDF. */ export declare const HtmlParser: React.FC<HtmlParserProps>; /** * Suspense-wrapped version for dynamic parsing (React DOM only) */ export declare const AsyncHtmlParser: React.FC<HtmlParserProps>; export default HtmlParser; //# sourceMappingURL=HtmlParser.d.ts.map