Good day.

How can I prevent comments from being output in HTML code? In other words, I need to comment out my html/jsp code, but it is impossible for my comment to be seen in the html code displayed on the page at the client.

    1 answer 1

    Try to put comments outside the html tags, for example, in PHP.

     <Здесь html разметка> <?php //Ваш комментарий ?> </Опять html разметка> 
    • But this is a fresh idea! I will add: for jsp it will be like this: <% //sdfsdf %> Thank you. - Anton Mukhin
    • one
      @ Anton Mukhin, then already <% - comment -%> for jsp. - out