260703_01_FST: First Commit

This commit is contained in:
2026-07-03 10:40:45 +09:00
commit b11d47b14e
65 changed files with 11002 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
"use client";
import DOMPurify from "dompurify";
const HTML_PROFILE = {
USE_PROFILES: {
html: true,
},
} as const;
export function sanitizeHtml(
input: string,
): string {
if (!input) {
return "";
}
return DOMPurify.sanitize(
input,
HTML_PROFILE,
);
}
export function sanitizeHtmlForPreview(
input: string,
): string {
return sanitizeHtml(input);
}