update diff looking good

This commit is contained in:
mbecker20
2024-05-10 03:59:51 -07:00
parent 4a1a653bd9
commit 1829a7da34
3 changed files with 13 additions and 4 deletions

View File

@@ -99,6 +99,15 @@ export const usableResourcePath = (resource: UsableResource) => {
return `${resource.toLowerCase()}s`
}
export const sanitizeOnlySpan = (log: string) => {
return sanitizeHtml(log, {
allowedTags: ["span"],
allowedAttributes: {
"span": ["class"]
},
});
}
const convert = new Convert();
/**
* Converts the ansi colors in log to html.