refactor(client): split text content rendering to separate module

This commit is contained in:
Elian Doran
2025-11-26 15:17:34 +02:00
parent abbb4e793f
commit c32b6393af
5 changed files with 103 additions and 101 deletions

View File

@@ -274,7 +274,7 @@ function getMimeTypeClass(mime: string) {
return `mime-${mime.toLowerCase().replace(/[\W_]+/g, "-")}`;
}
function isHtmlEmpty(html: string) {
export function isHtmlEmpty(html: string) {
if (!html) {
return true;
} else if (typeof html !== "string") {