Strip HTML tags while preserving readable structure โ headings, lists, links, and paragraph breaks.
Parsing happens via the browser's DOMParser โ tags never execute. Scripts, styles, and comments are removed. Inline elements become normal text; block elements get line breaks. Great for email previews, content extraction, or sanity-checking rich-text output.