Classification
Proprietary layout-wrapper & metadata stripping
Origin
EHR software, legal case-management databases, court PDFs, legacy systems
Target
Standardized briefs, patient-chart templates, filings

The problem

Case notes, court logs, and clinical history often live inside legacy databases, Electronic Health Record systems, and exported PDFs. Those systems are built to display and store records, not to hand you clean text — so when you copy a block out, the clipboard carries proprietary layout code, embedded metadata, odd line breaks, and invisible formatting wrappers along with the words.

The consequence

Paste that into a standardized brief or a patient-chart template and the hidden code comes with it: chaotic indentation, sudden font shifts mid-paragraph, stray line breaks splitting sentences, and pagination that breaks when the document is printed. The narrative you wanted arrives wearing the source system’s formatting instead of your template’s.

Before · copied from a records system
<div class="ehr-note">Patient reportsnbspintermittent
<span style="font:9pt">chest discomfort</span> overZWSPtwo weeks.</div>
layout wrappers · inline styles · hidden marks

The clinical sentence is buried inside <div> and <span> wrappers with inline font styling and invisible spacing — all of which will fight your template when pasted.

A note on sensitive text and privacy

Clean-Text Formatter runs entirely in your browser. The text you paste is processed on your own device with JavaScript and is never uploaded, transmitted, or stored anywhere — which is exactly the property you want when the text is a medical or legal record, and the opposite of pasting into an online tool that sends your input to a server.

That said, local processing reduces exposure; it does not replace your obligations. Follow your organization’s data-handling, confidentiality, and records-retention policies, and confirm that copying record text into any browser tool is permitted under those policies before you do it.

The fix

A short sequence flattens the wrapper and leaves clean narrative text that adapts to your destination’s styles:

  • Strip HTML Tags (key 6) removes the <div>/<span> wrappers and inline styling.
  • Remove Hidden Characters (key 8) clears zero-width and exotic spacing marks.
  • Straighten Quotes (key 5) and Trim Each Line (key 3) normalize punctuation and stray whitespace.
After
Patient reports intermittent chest discomfort over two weeks.
pure narrative text, ready for your template

The wrappers, inline styles, and invisible marks are gone; the sentence now takes on whatever formatting the receiving brief or chart applies.

The clean fix

When record text has to move from a legacy system into a standardized document, run it through cleanplaintext.com first — locally, on your device — and paste clean narrative into your template instead of the source system’s hidden code.