orig. formatting

This commit is contained in:
_Bastler
2022-02-27 13:59:05 +01:00
parent 03ee2eb49a
commit 2622041740
2 changed files with 41 additions and 40 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
// import sanitizeHtml from 'sanitize-html';
export class HtmlUtils {
public static getElementByIdOrFail<T extends HTMLElement>(id: string): T {
@@ -41,7 +41,7 @@ export class HtmlUtils {
public static sanitize(html: string | number | boolean | undefined): string {
if (typeof html === "string") {
return html;
/* TODO: fix sanitizer, sanitizeHtml seems not to work with vite
/* TODO: fix sanitizer, sanitizeHtml seems not to work with vite
return sanitizeHtml(html, {
allowedAttributes: {
span: ["style"],
@@ -53,7 +53,7 @@ export class HtmlUtils {
},
},
});
*/
*/
}
return "";
}