When automated SharePoint workflows send notifications, multi-line text fields often display raw HTML tags like
or
5 Ways to Remove Raw Line-Break Text from SharePoint Emails

1. The Power Automate 'replace()' Expression
- It is the most precise native method for targeting specific raw string characters (like \n or
) during workflow execution. - Utilizes WDL (Workflow Definition Language) to parse and replace characters within the dynamic content payload before the email action.
- Requires no premium connectors; executes instantly; highly customizable for different exact tag strings.
- Requires manual expression writing; syntax errors will cause the flow to fail.
2. Power Automate 'Html to text' Connector Action
- It automatically strips all HTML wrappers and converts rich text into a clean plain text format without requiring custom formulas.
- A built-in Content Conversion action that takes an HTML-formatted SharePoint column output and strips formatting tags before passing it to the email body.
- Easy drag-and-drop interface; handles complex nested HTML automatically; reduces manual coding.
- Strips all formatting, including bolding and hyperlinks, which might be undesirable.
3. Toggling the 'Is HTML' Parameter in Send an Email (V2)
- Often, the raw tags appear simply because the email client is instructed to read the incoming HTML as plain text.
- An advanced options toggle within the Office 365 Outlook connector that forces the email client to render tags rather than display them as raw text.
- Solves the issue in one click; preserves intended rich-text formatting like tables and bullet points.
- Does not actually delete the tags from the data, just hides them by rendering them.
4. Enforcing Plain Text in SharePoint Column Settings
- Prevents the raw line-break text from being generated at the source.
- Modifying the SharePoint List multi-line text column settings from "Rich text" to "Plain text".
- Fixes the problem universally for all future flows attached to that list; requires zero Power Automate modifications.
- Removes the ability for SharePoint users to format text when inputting data into the list.
5. Using Third-Party Content Conversion Tools (e.g., Muhimbi)
- Provides enterprise-grade conversion when handling highly complex SharePoint documents and email outputs.
- Premium connectors that sanitize, format, and convert list items into precisely mapped text or PDFs before emailing.
- Handles edge cases where native Microsoft tools fail; excellent for compliance-heavy automated reports.
- Requires additional premium licensing costs.
Compare Methods for Removing Raw Line-Break Text from SharePoint Emails
| Method | Ease of Use | Automation Level | Data Preservation | Best For |
|---|---|---|---|---|
| replace() Expression | Moderate | High | Keeps non-targeted formatting | Targeted tag removal |
| Html to Text Action | High | High | Strips all formatting | Pure plain text output |
| 'Is HTML' Toggle | Very High | High | Renders all formatting | Keeping rich text in emails |
| SharePoint Column Settings | High | Manual Setup | Prevents formatting creation | New list configurations |
| Third-Party Converters | Moderate | Very High | Highly customizable | Enterprise reporting |
Edit Downloaded Files in WPS Office While SharePoint Is Repaired

WPS Office cannot directly alter Microsoft SharePoint configurations, Power Automate cloud settings, or Microsoft 365 licensing to fix email line breaks. Those modifications must happen within your Microsoft tenant. However, once you successfully configure your workflow and learn removing Raw Line-Break Text from SharePoint Emails, you often need to export those clean text logs or email records for offline auditing. WPS Office provides an excellent environment for this secondary stage. You can copy the cleaned automated email contents into WPS Writer to draft official operational manuals, or export SharePoint list data into WPS Spreadsheet to run fast, local data analysis. By using WPS Spreadsheet’s local text-to-columns features, you can efficiently organize bulk email logs without relying on constant cloud connectivity.
FAQs About Removing Raw Line-Break Text from SharePoint Emails
Why does SharePoint insert and
tags into my automated emails?
SharePoint stores multi-line text fields with enhanced rich text as HTML. When Power Automate pulls this data and inserts it into a plain text email action, the email client displays the literal structural HTML tags instead of executing them as formatting instructions.
Can I remove raw line-break text from SharePoint emails without writing code?
Yes. You can bypass writing expressions by using the built-in "Html to text" action in Power Automate. Simply pass your SharePoint dynamic content into this action, and then use the output of this action in your email body.
Does changing a SharePoint column to Plain Text affect existing list items?
If you change an existing multi-line rich text column to plain text to solve this workflow issue, existing items will retain their underlying HTML tags in the database until they are manually edited and saved again. The fix only applies automatically to new entries.
What is the exact replace() formula to remove \n from dynamic content?
To replace a raw newline character with an HTML break in Power Automate, use the expression: replace(triggerOutputs()?['body/YourColumnName'], '\n', '
'). Ensure you replace 'YourColumnName' with your actual internal SharePoint column name.
tags into my automated emails?
SharePoint stores multi-line text fields with enhanced rich text as HTML. When Power Automate pulls this data and inserts it into a plain text email action, the email client displays the literal structural HTML tags instead of executing them as formatting instructions.
Can I remove raw line-break text from SharePoint emails without writing code?
Yes. You can bypass writing expressions by using the built-in "Html to text" action in Power Automate. Simply pass your SharePoint dynamic content into this action, and then use the output of this action in your email body.
Does changing a SharePoint column to Plain Text affect existing list items?
If you change an existing multi-line rich text column to plain text to solve this workflow issue, existing items will retain their underlying HTML tags in the database until they are manually edited and saved again. The fix only applies automatically to new entries.
What is the exact replace() formula to remove \n from dynamic content?
To replace a raw newline character with an HTML break in Power Automate, use the expression: replace(triggerOutputs()?['body/YourColumnName'], '\n', '. Ensure you replace 'YourColumnName' with your actual internal SharePoint column name.
')

I'm Maira, experienced in using office suite tools and technology to support professional tasks. My regular use of Office software has helped me develop strong command over these tools, especially in drafting legal instruments and helpful content.



