Skip to main content
Level 2
May 22, 2021
Solved

Removing comments from HTML in AEM

  • May 22, 2021
  • 3 replies
  • 1217 views

Is there any configuration to remove the HTML comments in publisher environment in AEM 6.5.?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Asutosh_Jena_

Hi @nesan 

 

You can use the HTL comment instead of HTML comment;

<!--/* Comment */-->

 

Thanks! 

3 replies

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
May 22, 2021

Hi @nesan 

 

You can use the HTL comment instead of HTML comment;

<!--/* Comment */-->

 

Thanks! 

NesanAuthor
Level 2
May 22, 2021
Thanks, @asutosh_jena_. It is working.