How to Fix HTML Formatting in Microsoft 365 DLP Custom Email Notifications
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.

- 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.
Ensure you have Microsoft 365 global administrator or compliance administrator permissions to edit DLP policies in the Microsoft Purview compliance portal.
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.
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.
Navigate to the Microsoft Q&A Office and Exchange Online forum, which is monitored by Microsoft engineers and enterprise IT professionals.
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.

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. Download the software: Visit the official WPS Office website and download the free installation package.
- 2. Install WPS Office: Run the installer and follow the simple on-screen instructions to set up the suite on your device.
- 3. Open existing documents: Launch WPS Office and instantly open, edit, or share your existing Microsoft Office files seamlessly.

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.




