orig. formatting
This commit is contained in:
@@ -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 "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user