UNPKG

@cobuildlab/8base-chat

Version:

Chat component that uses 8base

12 lines (11 loc) 385 B
export declare function getMessageTimestamp(ts: string | number | Date): string; /** * Sanitizes a message by replacing control characters with HTML entities. * @param message */ export declare function sanitizeMessage(message: string): string; /** * Replaces HTML entities with characters. * @param message */ export declare function desanitizeMessage(message: string): string;