Expand my Community achievements bar.

Join Adobe Journey Optimizer product experts for a live Ask Me Anything on October 15th at 8 AM PT about Expanding Your Mobile Reach with RCS & WhatsApp in AJO!
SOLVED

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

Avatar

Level 9

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?

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

@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.

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

@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.