title: mPDF & char is not encoded, how i can do?
body: <p>mPDF not convert the character ' &amp; ' and makes all that follows is not translatable . the pdf is generated but all the code following the character ' &amp; ' is not printed . this is my code:</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;p&gt;test example &amp; test example&lt;/p&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>i use this php code to create the pdf output:</p>
  
  <pre><code>&lt;?php
  $divcontent = $_POST['divcontent'];
  $html='&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body style="background-color:#FFFFFF;height:100%; width:100%;"&gt;';
  $html.= $divcontent;
  $html.='&lt;/body&gt;&lt;/html&gt;';
  //==============================================================
  
  include(dirname(__FILE__)."/../../libs/MPDF57/mpdf.php");
  @$mpdf=new mPDF('c');
  @$mpdf-&gt;SetDisplayMode('fullpage');
  @$stylesheet = file_get_contents(realpath(dirname(__FILE__)."/../..")."/css/style.css");
  $mpdf-&gt;setFooter('{PAGENO}');
  @$mpdf-&gt;WriteHTML($stylesheet,1);
  @$mpdf-&gt;WriteHTML($html);
  
  $rand = rand();
  @$mpdf-&gt;Output(realpath(dirname(__FILE__)."/../..")."/file.pdf",'F');
  ?&gt; 
  </code></pre>