logo
search
Compliance Problems

How to Fix HTML Formatting in Microsoft 365 DLP Custom Email Notifications

Steven ParkerSteven Parker Oct 23, 2026 869 views

Question details

The user needs to correctly format Microsoft 365 Data Loss Prevention (DLP) custom email notifications using HTML, as tags and line breaks are not rendering as intended.

How to Use HTML in Microsoft 365 DLP Custom Email Notifications
Product
Microsoft 365 Data Loss Prevention
Device & OS
not provided
Scenario
Configuring custom email notification alerts for enterprise DLP policies.
Observed behavior
HTML formatting and line breaks in custom email notifications fail to display properly because supported tags depend heavily on the underlying Microsoft 365 notification system.
Before you start

Ensure you have Microsoft 365 global administrator or compliance administrator permissions to edit DLP policies in the Microsoft Purview compliance portal.

Solution 1Recommended

Consult Microsoft Q&A for Supported DLP HTML Tags

Because HTML tag and newline support in DLP notifications frequently changes based on system updates, querying Microsoft experts directly is the most reliable way to find currently supported formats.

Microsoft 365 Data Loss Prevention systems have strict limitations on which HTML tags and CSS styles are permitted in custom email notifications. Standard line breaks or complex text formatting may be stripped out for security and consistency purposes.

1
Identify failing HTML tags

Review your existing DLP policy notification script and pinpoint exactly which HTML elements (e.g., <br>, <p>, or tables) are failing to render in the received emails.

2
Visit the official forum

Navigate to the Microsoft Q&A Office and Exchange Online forum, which is monitored by Microsoft engineers and enterprise IT professionals.

3
Submit your configuration

Post a detailed query including the exact HTML snippet you are attempting to use and ask for the most current guidance on supported line-break behavior and HTML tags for DLP custom notifications.

Consult Microsoft Q&A for Supported DLP HTML Tags
Keep HTML Simple: When formatting automated enterprise emails, always avoid embedded CSS styles or scripts, as exchange servers commonly block these by default.
Free Microsoft Office alternative

Simplify Your Document Workflow with WPS Office

While configuring enterprise Data Loss Prevention (DLP) requires Microsoft 365 admin tools, your daily document creation shouldn't be complicated or expensive. WPS Office is a free, lightweight, and user-friendly alternative to Microsoft Office that meets all standard productivity needs without complex setups.

  1. 1. Download the software: Visit the official WPS Office website and download the free installation package.
  2. 2. Install WPS Office: Run the installer and follow the simple on-screen instructions to set up the suite on your device.
  3. 3. Open existing documents: Launch WPS Office and instantly open, edit, or share your existing Microsoft Office files seamlessly.
Fully compatible with Microsoft Office formats (.docx, .xlsx, .pptx).Lightweight design that installs quickly and uses minimal system resources.Familiar, intuitive user interface that requires zero learning curve.Completely free for standard word processing, spreadsheet, and presentation tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why are my HTML line breaks ignored in Microsoft 365 DLP emails?

Microsoft 365 DLP notification systems often sanitize email content for security, stripping out certain standard HTML tags. Depending on recent platform updates, standard <br> tags or physical carriage returns may be ignored by the mail rendering engine.

Can I use CSS styling in DLP custom notifications?

It is highly discouraged to use complex or embedded CSS. Enterprise email systems generally strip external or complex inline styles to prevent malicious code execution and ensure basic cross-client readability.

Where can I find a list of supported HTML tags for Microsoft 365 DLP?

Microsoft does not maintain a static public list because supported tags change with security updates. It is recommended to request current formatting guidance directly on the Microsoft Q&A Office and Exchange Online forum.