Salesforce Insights for Regulated Industries | Vantage Point

Migrating Notes to Salesforce: Rich Text vs. Plain Text

Written by David Cockrum | Dec 5, 2026, 1:00:00 PM

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 &nbsp; 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.

Quick Answer

 

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.

TL;DR

  • What it is: Salesforce features store text differently — enhanced Notes and rich text fields interpret HTML; case comments and Chatter store plain text by default.
  • Why it matters: notes migrated from legacy systems often carry HTML markup, which renders as raw tags in plain-text destinations and makes history unreadable.
  • Best for: Salesforce admins, data migration leads, and IT teams moving notes, comments, or interaction history into Salesforce.
  • Decision point: match each legacy note type to a destination that can display its formatting — Notes for rich content, cleaned plain text for comments and feeds.
  • How Vantage Point helps: we map legacy note types to the right Salesforce objects and handle HTML conversion during Salesforce implementation and migration.

Why do migrated notes show raw HTML tags in Salesforce?

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.

Which Salesforce features store rich text, and which store plain text?

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.

What are your options when legacy notes carry formatting?

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.

Should you enable Rich Text for Case Comments?

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:

  • It is irreversible. Once enabled, you cannot turn it off.
  • It changes the data model. Existing references to the 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.
  • It is Lightning-only. Comments added in Salesforce Classic are not available in Lightning once the feature is on.
  • Field-level encryption must be re-enabled manually if you use it on case comments.
  • Existing plain text comments convert automatically and display as rich text, so no manual migration of current comments is needed — but newly imported HTML still needs to be well-formed and within the supported tag set.

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.

How do you import legacy notes as rich text?

The standard path is Data Loader against the ContentNote object:

  • Prepare the body files. Each note body becomes a file on your local drive (or well-formed content in the load file), with HTML entities properly encoded — ampersands, quotes, and angle brackets that are content rather than markup must use their HTML equivalents.
  • Load ContentNote records. The CSV maps titles and body content; Data Loader supports bulk insert of notes with their formatting.
  • Link each note to its parent record. A second load creates ContentDocumentLink rows connecting each ContentNote to the account, case, or custom object record it belongs to — with the right share type and visibility.
  • Expect and handle the HTML error. Inserting ContentNote records containing HTML through generic API tooling throws a known content error; Data Loader's CSV path and correctly escaped content avoid it.
  • Validate in a sandbox first. Load a sample batch, open the records in Lightning, and confirm the formatting renders as intended before committing the full history.

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.

What should you test before loading the full history?

  • Render check per destination. Open migrated samples in every place users will see them — Notes related list, case feed, mobile app — and confirm formatting or clean plain text, not tags.
  • Entity encoding. Search samples for stray &nbsp;, &amp;, or broken characters, which signal double-encoding in the transformation step.
  • Length limits. Rich text fields cap at 131,072 characters and ContentNote has its own size constraints; identify over-limit notes and split or truncate deliberately rather than letting loads fail.
  • Visibility and sharing. ContentDocumentLink settings control who sees each note; confirm migrated notes are visible to the teams that need them and not exposed where they should not be.
  • Integration impact. If you enable Rich Text for Case Comments, regression-test every flow, Apex class, and integration that referenced CommentBody.

How Vantage Point helps

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.

Planning a migration with years of formatted notes?

 

Get the content-type mapping right before the load, not after the complaints. Talk to Vantage Point about your Salesforce migration.

Frequently Asked Questions

Why do my migrated notes show HTML tags in Salesforce?

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.

Does Salesforce Notes support rich text formatting?

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.

Are Salesforce case comments rich text?

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.

Can Chatter posts display HTML formatting?

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.

How do I import notes with formatting into Salesforce?

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.

Can I turn off Rich Text for Case Comments after enabling it?

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.

Sources