mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-31 04:23:40 +00:00
strip html from colors from logs (#1604)
This commit is contained in:
@@ -21,3 +21,8 @@ export async function copyToClipboard(str: string): Promise<boolean> {
|
||||
return copy
|
||||
}
|
||||
}
|
||||
|
||||
export function strip(html: string) {
|
||||
let doc = new DOMParser().parseFromString(html, 'text/html')
|
||||
return doc.body.textContent || ''
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user