Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to remove comments from html ?

 
vijay mahendra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

how to remove comments automatically from html ?

please help me in this.


thanks in advance

vijay
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Remove where?

Eric
 
vijay mahendra
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

remove from html page in production environment..

generally we add comments in development time.But i want to remove comments automatically from html page or jsp page
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you have a build process? If you do that is the right place to do it. Simple regular expression should be able to do the find and replace.

There are html compressors that remove whitespace, most of them will also remove the comments.

Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic