title: How can I mark this line in HTML file to be ignored by sonar rules?
body: <p>I have a scenario where there is an AEM template file and in this file, I have a single <code>&lt;li&gt;</code> element. In other words, I have a loop inside that generate a list of items.</p>
  
  <pre><code>&lt;template data-sly-template.step&gt;
      &lt;li
          data-sly-use.localStep="MyAdapter"
          data-sly-test="${(wcmmode.edit &amp;&amp; localStep.start) || !wcmmode.edit}"
  </code></pre>
  
  <p>But, the Sonar's rule <a href="https://rules.sonarsource.com/html/RSPEC-1093" rel="noreferrer">RSPEC-1093</a> is complaining that:</p>
  
  <blockquote>
    <p><code>"&lt;li&gt;"</code> and <code>"&lt;dt&gt;"</code> item tags should be in <code>"&lt;ul&gt;"</code>, <code>"&lt;ol&gt;"</code> or <code>"&lt;dl&gt;"</code> container tags.</p>
  </blockquote>
  
  <p>In this case, is not a bug, once that the <code>&lt;ul&gt;</code> is outside of the template. The output file is a well-generated HTML file with no errors.</p>
  
  <p>I'm trying to use <code>NOSONAR</code> in html file. I have tried <code>&lt;!-- NOSONAR --&gt;</code> and <code>&lt;!-- //NOSONAR --&gt;</code>, but is not working. </p>
  
  <p><strong>How can I mark this line in HTML file to be ignored by sonar rules?</strong></p>