MCPcopy Create free account
hub / github.com/0010aor/FlashNotes / stripHtml

Function stripHtml

frontend/src/utils/text.ts:1–4  ·  view source on GitHub ↗
(html: string)

Source from the content-addressed store, hash-verified

1export function stripHtml(html: string) {
2 const doc = new DOMParser().parseFromString(html, 'text/html')
3 return doc.body.textContent || ''
4}
5
6export const MAX_CHARACTERS = 3000
7export const WARNING_THRESHOLD = 20

Callers 1

CardListItemFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected