What Strip HTML helps you do
Remove tags, script and style blocks, then decode a few common HTML entities, leaving readable text. It is the way to get the plain content out of an HTML fragment without opening a browser. Tags are replaced with spaces, so words on either side of a tag do not run together.
Markup stripping runs locally in your browser with no upload to Haivix.
How it works
These tools scan the pasted text in the browser with a pattern or parser and return the matches in first-seen order. Extraction is a candidate list, not a verification step: an email-shaped string may not be deliverable, a URL may not resolve, and a number may be part of a date or an identifier. Nothing is uploaded, and the source text is never changed. The result is a snapshot of the pasted text; editing the source afterwards does not update the list.
How to use Strip HTML
- Paste an HTML snippet or full document.
- Strip the markup so only visible text remains.
- Check that the text around links and bold words still reads correctly.
- Copy the plain-text result.
When to use it
- Extract the text of an email or page from its HTML source.
- Clean markup out of content before importing it.
- Read a fragment without the surrounding tags.
- Prepare an HTML email for a plain-text version.
- Pull copy out of a saved page for a word count.
- Check whether a template contains placeholder text.
When not to use it
- Do not expect JavaScript-rendered content; the tool does not run scripts.
- Do not use it to sanitize HTML for display; it strips everything, including safe markup.
- Do not rely on it for a faithful layout or table structure.
Example
A paragraph wrapped in tags with a bold word returns just the sentence text. A script block is removed entirely rather than appearing as code. An entity such as & becomes &, while an uncommon entity may remain encoded.
What you can do with Strip HTML
- Remove script and style blocks entirely.
- Strip HTML and XML tags from the fragment.
- Decode common entities such as & and <.
- Collapse excess spaces and blank lines.
- Copy the plain-text result.
- Run the stripping locally with no upload.
Example: check the matches on a sample
Paste a short sample first and count the expected matches by eye. Compare that count with the result before running a large file, because a missing match is easier to spot in a small sample.
Read a few matches in context to catch false positives. A phone-like number inside an order ID, or a URL inside a code snippet, is common and should not be treated as a contact or a live link.
Copy the list and keep the original. If the extraction feeds a mail merge or a report, verify a sample of the destinations rather than assuming every match is valid.
If the result is empty, check the input format before assuming the tool is broken. A bare domain without http, an address split across a line, or JSON with a trailing comma are common reasons for no matches.
For a list that will be contacted or published, keep the source and the extracted list side by side. The source is the only way to resolve a questionable match or explain why one was missed.
What to know before you start
- It does not execute scripts, so content rendered by JavaScript is not present in the output.
- Complex layouts lose their structure, and some entities may not be decoded.
- It is not an HTML sanitizer and should not be used to prepare markup for display.
- It collapses whitespace, which can change preformatted text.
Common mistakes
- Expecting content injected by JavaScript to appear.
- Assuming every HTML entity is decoded.
- Using the output as sanitized HTML rather than plain text.
- Losing table or list structure and not noticing until import.
Troubleshooting
If script text appears, check for a malformed closing tag that the pattern did not match.
If an entity remains, it may not be one of the decoded set; replace it manually.
If words run together, a tag was removed without a space; add one manually.
If the output is empty, the fragment may contain only markup or scripts.
Related standards and documentation
- Email addresses follow RFC 5322, but the tool uses a practical pattern rather than a full parser.
- URLs follow RFC 3986; the extractor recognises http, https and www forms.
- Regular-expression matching is not a validation service and can miss unusual formats.
- No extraction tool can prove that a match is valid or safe; that requires a separate check.
- Test on a small sample first.
- Check false positives in context.
- Review before a mail merge or report.
- Empty output usually means the format, not the tool.