11 lines
271 B
TypeScript
11 lines
271 B
TypeScript
import { clsx, type ClassValue } from "clsx"
|
|
import { twMerge } from "tailwind-merge"
|
|
|
|
export function cn(...inputs: ClassValue[]) {
|
|
return twMerge(clsx(inputs))
|
|
}
|
|
|
|
export const stripHtml = (html: string) => {
|
|
return (html || "").replace(/<[^>]*>?/gm, '').trim();
|
|
};
|