Skip to content

Commit a6cdf8c

Browse files
committed
Allow to provide custom colors for the card text
1 parent fd24f46 commit a6cdf8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/sanitize-html/sanitize.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import sanitizeHtml from "sanitize-html";
22

33
export const sanitize = (text: string) => {
44
return sanitizeHtml(text, {
5-
allowedTags: ["small", "a", "big", "br", "b"],
5+
allowedTags: ["small", "a", "big", "br", "b", "font"],
66
allowedAttributes: {
77
a: ["href"],
8+
font: ["color"],
89
},
910
});
1011
};

0 commit comments

Comments
 (0)