We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 499aa60 commit 9b6e2efCopy full SHA for 9b6e2ef
apps/frontend/src/components/ui/servers/LogParser.vue
@@ -47,7 +47,14 @@ const parsedLog = computed(() => {
47
});
48
49
const sanitizedLog = computed(() => {
50
- return DOMPurify.sanitize(parsedLog.value);
+ return DOMPurify.sanitize(parsedLog.value, {
51
+ ALLOWED_TAGS: ["span"],
52
+ ALLOWED_ATTR: ["style"],
53
+ ALLOWED_CSS_STYLES: {
54
+ color: true,
55
+ "background-color": true,
56
+ },
57
+ });
58
59
</script>
60
0 commit comments