title: Display:none not working in html2pdf
body: <pre><code>   $content = "&lt;div id='content'&gt; &lt;div style='display:block;border:1px solid red'&gt;Display &lt;/div&gt; 
              &lt;div style='display:none;border:1px solid black'&gt;No-Display &lt;/div&gt;&lt;/div&gt;";
              $html2pdf = new HTML2PDF('P','A4','fr');
              $html2pdf-&gt;WriteHTML($content);
              $html2pdf-&gt;Output('example.pdf');
              $return = true;
  </code></pre>
  
  <p>This leads to the following:
  <img src="https://i.stack.imgur.com/vWSpX.png" alt="enter image description here">        </p>
  
  <p>Obviously, I want the <code>display:none</code> section not to be displayed. What can I do?</p>