title: All if statements rendered when using dompdf
body: <p>I'm using dompdf for a results page. Statements that did not meet the condition still leave a placeholder/blank space in the PDF. I'm using ob_start to grab the HTML and pass to dompdf output -- is it saving more than just the output to the buffer? Viewing source, the statements which were not executed are not visible. </p>
  
  <pre><code>&lt;?php 
  
  ob_start(); 
  
  ?&gt;
  
  &lt;html&gt;
    &lt;ul&gt;
      &lt;?php if($quizData['q2_o5'] == 1){ ?&gt;
         &lt;li&gt;Lipsum&lt;/li&gt;
          &lt;ul&gt;
              &lt;li&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin et egestas sapien. Curabitur facilisis suscipit est ac auctor. Praesent et tellus malesuada arcu tincidunt condimentum. Donec id risus est.&lt;/li&gt;
          &lt;/ul&gt;
     &lt;?php } ?&gt;
     &lt;?php if($quizData['q2_o6'] == 1){ ?&gt;
         &lt;li&gt;Lipsum&lt;/li&gt;
          &lt;ul&gt;
              &lt;li&gt;Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin et egestas sapien. Curabitur facilisis suscipit est ac auctor. Praesent et tellus malesuada arcu tincidunt condimentum. Donec id risus est.&lt;/li&gt;
          &lt;/ul&gt;
     &lt;?php } ?&gt;
     &lt;/ul&gt;
  &lt;/html&gt;
  
  &lt;?php
  
      $html = ob_get_contents();
      ob_end_flush();
      require_once("dompdf/dompdf_config.inc.php");
      $dompdf = new DOMPDF();
      $dompdf-&gt;load_html($html);
      $dompdf-&gt;render();
      $output = $dompdf-&gt;output();
      $file_to_save = $_SERVER['DOCUMENT_ROOT'].'/completed/output.pdf';
      file_put_contents($file_to_save, $output); 
  
  ?&gt;
  </code></pre>