Removing comments from HTML in AEM | Community
Skip to main content
May 22, 2021
Solved

Removing comments from HTML in AEM

  • May 22, 2021
  • 1 reply
  • 1199 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! 

1 reply

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
May 22, 2021
Thanks, @asutosh_jena_. It is working.