mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
temporarily disable sanitization
This commit is contained in:
parent
36671b68b0
commit
e72a4e76d6
2 changed files with 7 additions and 6 deletions
|
|
@ -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(); */
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue