@rcb-plugins/html-renderer
Version:
A simple plugin for rendering html messages in React ChatBotify.
13 lines • 431 B
TypeScript
/**
* Parses message that has html enabled (holds html tags as individual elements to enable smooth streaming).
*
* @param message message to parse
*/
export declare const parseHtmlMessage: (message: string) => string[];
/**
* Strips HTML tags from a string using DOMParser.
*
* @param html HTML string to strip tags from
*/
export declare const stripHtml: (html: string) => string;
//# sourceMappingURL=htmlParser.d.ts.map