react-safe-html-parser
Version:
A secure, lightweight HTML parser for React with XSS protection and SSR support
16 lines • 476 B
TypeScript
import React from 'react';
import type { ParserOptions } from './types';
/**
* SSR-safe HTML parser that doesn't use any hooks
* This component is completely safe for server-side rendering
*/
export declare const SSRHtmlParser: React.FC<{
html: string;
options?: ParserOptions;
className?: string;
style?: React.CSSProperties;
fallback?: React.ReactNode;
showErrors?: boolean;
}>;
export default SSRHtmlParser;
//# sourceMappingURL=ssr-safe.d.ts.map