mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-04-04 14:29:45 +00:00
* tail logs * add cli * add FE * abstract http to shared * batch new logs * file download for logs * fix modal error when no config Co-authored-by: Chris Guida <chrisguida@users.noreply.github.com> Co-authored-by: Aiden McClelland <me@drbonez.dev> Co-authored-by: Matt Hill <matthewonthemoon@gmail.com> Co-authored-by: BluJ <mogulslayer@gmail.com>
5 lines
139 B
TypeScript
5 lines
139 B
TypeScript
export function strip(html: string) {
|
|
let doc = new DOMParser().parseFromString(html, 'text/html')
|
|
return doc.body.textContent || ''
|
|
}
|