title: HTML (js inside) page to pdf using HTML2PDF issue
body: <p>I get into trouble when I want to change the html page to pdf using HTML2PDF. actually, i dont know what is going on with my code. but the error appears like this : 
  <a href="https://i.stack.imgur.com/p4INs.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/p4INs.png" alt="enter image description here"></a></p>
  
  <p>to be clear, this is the code : </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  session_start();
  ob_start();
  include_once("config.php"); 
  ?&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;!-- Bagian halaman HTML yang akan konvert --&gt;
  &lt;head&gt;
  &lt;script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"&gt;&lt;/script&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /&gt;
  &lt;title&gt;&lt;?php echo $judul; ?&gt;&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php 
  echo "&lt;h1&gt;".$judul."&lt;/h1&gt;"; 
  ?&gt;
      &lt;div id="chart_div"&gt;&lt;/div&gt;
     
    
  &lt;script type="text/javascript"&gt;    
   google.charts.load('current', {packages:["orgchart"]});
        google.charts.setOnLoadCallback(drawChart);
  
        function drawChart() {
          var data = new google.visualization.DataTable();
          data.addColumn('string', 'Name');
          data.addColumn('string', 'Manager');https://jsfiddle.net/klometerz/zyq1rp81/#run
          data.addColumn('string', 'ToolTip');
  
          // For each orgchart box, provide the name, manager, and tooltip to show.
          data.addRows([
    
    &lt;?php 
    include "inc/koneksi.php";
    $data = mysql_query("select * from t_chart");
    while($d = mysql_fetch_array($data))
    {
     echo "[{v:'".$d[id_chart]."', f:'".$d[f_chart];?&gt;&lt;/a&gt;&lt;div style="color:red; size:11px; font-style:italic"&gt;&lt;?php echo "&lt;a href=edit_chart.php?id=".$d[id_chart]."&gt;".$d[batch_chart]."&lt;/a&gt;&lt;/div&gt;'},'".$d[manager_chart]."', '".$d[tooltip_chart]."'],";
    }
    ?&gt;
          
          ]);
  
          // Create the chart.
          var chart = new google.visualization.OrgChart(document.getElementById('chart_div'));
          // Draw the chart, setting the allowHtml option to true for the tooltips.
          chart.draw(data, {allowHtml:true});
        }
     &lt;/script&gt;
     
     &lt;?php
  echo $isi;
  echo "&lt;p align='right'&gt;".$penulis."&lt;/p&gt;";
  ?&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  &lt;?php
  $content = ob_get_clean();
   $content = '&lt;page style="font-family: freeserif"&gt;'.nl2br($content).'&lt;/page&gt;';
   require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php');
   try
   {
    $html2pdf = new HTML2PDF('L','A4','en', false, 'ISO-8859-15',array(30, 0, 20, 0));
    $html2pdf-&gt;setDefaultFont('Arial');
    $html2pdf-&gt;writeHTML($content, isset($_GET['vuehtml']));
    $html2pdf-&gt;Output('SO');
   }
   catch(HTML2PDF_exception $e) { echo $e; }
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>please anybody can help me here solve this problem? i will be very appreciated. thank you.</p>