temporarily disable sanitization

This commit is contained in:
Jesse Wierzbinski 2024-04-07 04:05:06 -10:00
parent 36671b68b0
commit e72a4e76d6
No known key found for this signature in database
2 changed files with 7 additions and 6 deletions

View file

@ -1,8 +1,10 @@
import { config } from "config-manager";
import { sanitize } from "isomorphic-dompurify";
// import { sanitize } from "isomorphic-dompurify";
export const sanitizeHtml = async (html: string) => {
const sanitizedHtml = sanitize(html, {
// TEMP: Allow all tags and attributes
return html;
/* const sanitizedHtml = sanitize(html, {
ALLOWED_TAGS: [
"a",
"p",
@ -70,5 +72,5 @@ export const sanitizeHtml = async (html: string) => {
},
})
.transform(new Response(sanitizedHtml))
.text();
.text(); */
};