feat: replace rich text editor with custom Tiptap implementation and add HTML formatting utilities
This commit is contained in:
@@ -4,3 +4,7 @@ import { twMerge } from "tailwind-merge"
|
||||
export function cn(...inputs: ClassValue[]) {
|
||||
return twMerge(clsx(inputs))
|
||||
}
|
||||
|
||||
export const stripHtml = (html: string) => {
|
||||
return (html || "").replace(/<[^>]*>?/gm, '').trim();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user