How to make html comments invisible? that is, when debugging or viewing the contents of a page in html format, comments were not displayed?

  • one
    no way, just completely remove them - Grundy
  • Surely modern "collectors" before sending to the client will do it for you. Although here I am not sure that the markup files are also cleaned. - smellyshovel
  • Well, or write a script that will delete comments when it is posted and return it back for editing. In Linux, for example, you can clean it with regular files, then make a patch file with diff. About when you need to change the file - patch it with comments - Nikita Vasilchenko

1 answer 1

no way. if you need to save a comment, but do not write it in the page code, you can use a notepad in which to specify a comment to the line