mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
Replace config manager with unjs/c12
This commit is contained in:
parent
6b2e4044b6
commit
6a54c5b805
30 changed files with 744 additions and 733 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue