| 1 | import { clsx, type ClassValue } from 'clsx' |
| 2 | import { twMerge } from 'tailwind-merge' |
| 3 | |
| 4 | export function cn(...inputs: ClassValue[]) { |
| 5 | return twMerge(clsx(inputs)) |
| 6 | } |
| 7 | |
| 8 | export function escapeHtmlText(value: string): string { |
| 9 | return value |
| 10 | .replace(/&/g, '&') |
| 11 | .replace(/</g, '<') |
| 12 | .replace(/>/g, '>') |
| 13 | .replace(/"/g, '"') |
| 14 | .replace(/'/g, ''') |
| 15 | } |
| 16 |