mirror of
https://github.com/versia-pub/server.git
synced 2026-04-27 20:59:15 +02:00
Finish full rewrite of server and testing systems
This commit is contained in:
parent
0e4d6b401c
commit
0541776d3d
32 changed files with 1168 additions and 916 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import { getConfig } from "~classes/configmanager";
|
||||
import { ConfigManager } from "config-manager";
|
||||
import { sanitize } from "isomorphic-dompurify";
|
||||
|
||||
export const sanitizeHtml = async (html: string) => {
|
||||
const config = getConfig();
|
||||
const config = await new ConfigManager({}).getConfig();
|
||||
|
||||
const sanitizedHtml = sanitize(html, {
|
||||
ALLOWED_TAGS: [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue