export function stripTags(html: string): string { const div = document.createElement("div"); div.innerHTML = html; const purifiedString = div.textContent || div.innerText || ""; div.remove(); return purifiedString; }