Why AJO is changing the HTML format after saving the code? | Community
Skip to main content
Mario248
Level 7
October 8, 2025
Solved

Why AJO is changing the HTML format after saving the code?

  • October 8, 2025
  • 1 reply
  • 262 views

I’m creating a Content Template using HTML code and facing two issues:

  1. After formatting the HTML and saving it, the code appears collapsed when I reopen it — it’s not retaining the formatted structure. Any idea how to fix this?

  2. Once I save the HTML, the system automatically injects data attributes and header tags. How can I prevent these from being auto-generated?

Best answer by Mayank_Gandhi

@mario248 This behavior is by design. 

AJO modifies HTML formatting to enforce structural and security requirements. When you save HTML, AJO's backend parses and sometimes "minifies" or restructures your code for consistency, validation, and security reasons. It will not retain line breaks, indentation, or comments as written—even if your original formatting was clean or nicely spaced. The system processes HTML for compatibility and downstream rendering in multiple email clients, which often involves collapsing whitespace and auto-formatting blocks.

1 reply

Mayank_Gandhi
Adobe Employee
Mayank_GandhiAdobe EmployeeAccepted solution
Adobe Employee
October 13, 2025

@mario248 This behavior is by design. 

AJO modifies HTML formatting to enforce structural and security requirements. When you save HTML, AJO's backend parses and sometimes "minifies" or restructures your code for consistency, validation, and security reasons. It will not retain line breaks, indentation, or comments as written—even if your original formatting was clean or nicely spaced. The system processes HTML for compatibility and downstream rendering in multiple email clients, which often involves collapsing whitespace and auto-formatting blocks.