We all know the good old HTML comments:
<!-- Oi, eu sou o Goku! -->
The question is: Is there any way to exclude comments from the HTML that the server sends to the client? I think such a configuration is done at the server level (I am specifically below IIS) based programming are also welcome (I think something in the global routines: Global.asa
- for ASP scripts - or Global.asax.cs
- for ASP.NET pages - is also appropriate).
The need arose recently in the company I work for, as there are several HTML comments - therefore sent to the customer - with business details of the routines' operation, and these comments should have been made with their respective server side
to be ignored during the build process.