title: MPDF not rendering html tags
body: <p>I am using MPDF which I have installed using composer. I have some content stored in a MySQL database which includes the HTML tags as well as the text. I would like the user to be able to create and edit their own letters.
  When I go to print the pdf I get a PDF page with the HTML tags displayed on the page. The strange thing is; if I take that output and copy it and past it into the WriteHTML() function in the PHP page the page will render with the proper text and formatting. It doesn't seem to be an issue with the HTML markup, but how Mpdf is rendering the HTML.</p>
  <p>Here is the $headder output before it is sent to $WriteHTML:</p>
  <pre><code>&lt;h1 style=&quot;text-align: center;&quot;&gt;Baddeck Academy Scholarships&lt;/h1&gt; &lt;h6     
  style=&quot;text-align: center; line-height: 1;&quot;&gt;&lt;span style=&quot;color:         
  #e67e23;&quot;&gt;320 Shore Rd.&lt;/span&gt;&lt;/h6&gt; &lt;h6 style=&quot;text-align: center; 
  line-height: 1;&quot;&gt;&lt;span style=&quot;color: #e67e23;&quot;&gt;Baddeck, NS&lt;/span&gt;&lt;/h6&gt; 
  &lt;h6 style=&quot;text-align: center; line-height: 1;&quot;&gt;&lt;span style=&quot;color: 
  #e67e23;&quot;&gt;B0E 1B0&lt;/span&gt;&lt;/h6&gt;
  </code></pre>
  <p>Here is the exported page content as well as the code that I am using.</p>
  <p><a href="https://i.stack.imgur.com/SbwBi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SbwBi.png" alt="enter image description here" /></a></p>
  <p>Here is the Mpdf php page:</p>
  <pre><code>&lt;?php
  
  include('connect.php');
  $id = (filter_var($_GET['id'], FILTER_SANITIZE_STRING));
  
  $sql = &quot;SELECT * FROM `money_letters_contents` WHERE `id` = '$id' LIMIT 0,1000&quot;;
  $result = mysqli_query($conn, $sql);
  
  if (mysqli_num_rows($result) &gt; 0) {
    // output data of each row
    while($row = mysqli_fetch_assoc($result)) {
   $headder = ($row['headder']);
  $body = ($row['body']);
        $footer = ($row['footer']);
    }
  } else {
  
  }
  
  $html = $headder;
  
  //==============================================================
  //==============================================================
  //==============================================================
  
  require_once __DIR__ . '/vendor/autoload.php';
  $mpdf = new mPDF();
  
  $mpdf-&gt;WriteHTML(&quot;$headder&quot;);
  $mpdf-&gt;WriteHTML(&quot;$body&quot;);
  $mpdf-&gt;Output();
  exit;
  </code></pre>