Every CRM migration has a moment when the data technically loads — and then someone opens a record and winces. A classic version of that moment: interaction notes imported from a legacy case-management or servicing platform render beautifully in one part of Salesforce and as raw HTML markup in another. The same note that reads cleanly in the Notes panel shows up in a case comment or a Chatter feed as a wall of <p>, <span>, and tags.
This is not a data corruption problem, and it is not something Salesforce support can "fix" — it is how the platform stores text. Different Salesforce features store note-like content in different formats, and only some of them interpret HTML. This guide explains which is which, what your options are when legacy notes carry formatting, and how to plan the load so the history your team relies on stays readable.
Salesforce stores note-style content in two different ways. Enhanced Notes (the ContentNote object) and custom rich text fields store rich text, so basic HTML formatting renders as intended. Case Comments and Chatter posts/comments store plain text by default, so any HTML in migrated content displays as literal tags. When you migrate formatted notes from a legacy system, either load them as Notes attached to the right records, convert the HTML to clean plain text for plain-text destinations, or — for case comments specifically — evaluate the newer Rich Text for Case Comments setting, which is irreversible and changes the API field your integrations use. Vantage Point plans these content-type decisions as a standard part of Salesforce data migrations.
When a legacy system exports notes that were written in a rich text editor, the export usually contains the formatting as HTML markup — paragraph tags, spans with style classes, non-breaking space entities. Whether that markup renders or shows up as raw text depends entirely on what the destination field does with it.
A rich text destination parses the markup and displays formatted content: bold text, line breaks, lists. A plain text destination stores the characters exactly as received and displays them literally — so the reader sees the tags instead of the formatting. Neither behavior is a bug. The migration issue is a mismatch: content authored for a rich text container got loaded into a plain text one.
The confusion compounds because the same source note can land in two destinations. If your migration maps some legacy notes to Salesforce Notes and others to case comments or feed posts, users see the same content rendered two different ways and reasonably conclude something loaded wrong.
Before mapping any legacy note type, confirm what each candidate destination does with HTML. The common containers behave as follows:
| Destination | Storage format | What migrated HTML does |
|---|---|---|
| Enhanced Notes (ContentNote), shown in the Notes related list | Rich text — basic HTML is interpreted | Renders as formatted text; supported tags display correctly |
| Custom rich text area fields | Rich text | Renders, subject to Salesforce's tag allowlist and size limits |
| Case Comments (default) | Plain text | Displays as literal tags — the classic migration complaint |
| Case Comments with "Rich Text for Case Comments" enabled | Rich text (Lightning only, irreversible) | Renders — but changes the underlying API field; see the caveats below |
| Chatter posts and comments | Plain text plus the composer's lightweight formatting; the API exposes limited rich-text support | Arbitrary HTML is not interpreted — it appears as literal characters or gets stripped |
| Legacy Note object ("Notes & Attachments") | Plain text | Displays as literal tags; a reason to migrate to enhanced Notes instead |
The pattern to remember: Notes are the rich text home for record history in modern Salesforce. Comments and feeds are optimized for quick, plain communication — not for storing formatted legacy content.
There are four workable patterns. Most migrations use a combination, chosen per note type rather than globally.
Option 1: Load legacy notes as enhanced Notes on the target record. Import the content to the ContentNote object and link each note to its parent record with a ContentDocumentLink row. The formatting renders in the Notes related list, and the notes remain searchable. This is the closest match for interaction logs, call notes, and case narratives that users expect to read with their original structure intact.
Option 2: Convert the HTML to clean plain text. Strip the tags during transformation — preserving line breaks, list markers, and spacing — and load the readable result into plain text destinations like case comments. The content survives intact; only the formatting is dropped. This is the right call when the destination must stay a comment stream (for example, to preserve support-team workflows) and readability matters more than bold headings.
Option 3: Store formatted history in a custom rich text field or a related custom object. If notes need to appear inline on the record page rather than in a related list, a rich text area field works — subject to field length limits (rich text areas cap at 131,072 characters) and Salesforce's supported tag list. For high-volume history, a custom "Legacy Note" object with a rich text field gives you filtering, reporting, and page-layout control that the Notes related list does not.
Option 4: Leave deep history in a read-only archive and link to it. For very old or very large note sets, the pragmatic answer is sometimes not to migrate the content at all: load a summary note with a link to the legacy system's read-only archive. This keeps the org lean, though it depends on the archive remaining accessible — so treat it as a bridge, not a permanent plan, if the legacy system is being retired.
Salesforce now offers a Rich Text for Case Comments setting (Setup → Support Settings) that turns the case comment body into a rich text editor with formatting, images, and @ mentions. It sounds like the obvious fix, but it carries real caveats:
CommentBody field — Apex code, tests, flows, integrations — break and must be repointed to the CommentBodyRichtext field. Any middleware or reporting that reads case comments needs the same update.Our guidance: enable it only if case comments are a first-class part of your service workflow going forward and you are prepared to update every integration that touches them. If case comments are mainly a migration destination, loading history as Notes (Option 1) is usually the lower-risk path.
The standard path is Data Loader against the ContentNote object:
If your legacy export is XML rather than HTML — common with case-management platforms that store structured documents — add a transformation step that converts the XML to either clean HTML (for Notes) or plain text (for comments) before the load. Trying to push raw XML into any Salesforce text field produces exactly the "jumbled tags" outcome that triggers these projects.
, &, or broken characters, which signal double-encoding in the transformation step.CommentBody.We handle notes and interaction history as a first-class workstream in every migration: profiling what the legacy content actually contains, mapping each note type to a destination that can display it, building the HTML-to-plain-text or HTML-to-Notes transformation, and validating rendering before the production load. Our Salesforce practice has run migrations from a wide range of legacy CRM and case-management platforms, and managed services keep your org's data model clean as new history accumulates.
Get the content-type mapping right before the load, not after the complaints. Talk to Vantage Point about your Salesforce migration.
The notes were loaded into a plain text destination such as case comments or a Chatter post, which displays HTML markup as literal characters instead of interpreting it. Re-loading the same content as enhanced Notes (ContentNote) or converting it to clean plain text resolves the display issue.
Yes. Enhanced Notes — the ContentNote object shown in the Notes related list — store rich text and render basic HTML formatting such as bold text, lists, and line breaks. The older "Notes & Attachments" note object is plain text, which is one reason Salesforce recommends moving to enhanced Notes.
By default, no — case comments store plain text, so pasted or imported HTML shows as raw tags. Salesforce offers a Rich Text for Case Comments setting in Support Settings, but it is Lightning-only, irreversible, and changes the API field integrations use, so evaluate it carefully before enabling.
Not arbitrary HTML. Chatter supports the lightweight formatting available in its composer (and a limited set of markup through the API), but HTML pasted or loaded into a post or comment body appears as literal text. For formatted legacy content, use enhanced Notes instead of Chatter.
Use Data Loader to insert records into the ContentNote object with properly encoded HTML content, then create ContentDocumentLink records to attach each note to its parent record. Test a sample batch in a sandbox first and confirm the formatting renders in Lightning before loading the full history.
No — the setting is permanent once enabled. Existing plain text comments convert automatically, but references to the CommentBody field in Apex, flows, and integrations break and must be updated to CommentBodyRichtext. Test the change in a sandbox and audit integrations before enabling it in production.