Replace config manager with unjs/c12

This commit is contained in:
Jesse Wierzbinski 2024-04-06 18:16:54 -10:00
parent 6b2e4044b6
commit 6a54c5b805
No known key found for this signature in database
30 changed files with 744 additions and 733 deletions

View file

@ -1,9 +1,7 @@
import { ConfigManager } from "config-manager";
import { config } from "config-manager";
import { sanitize } from "isomorphic-dompurify";
export const sanitizeHtml = async (html: string) => {
const config = await new ConfigManager({}).getConfig();
const sanitizedHtml = sanitize(html, {
ALLOWED_TAGS: [
"a",