title: HTML w/ PHP variables into a variable
body: <p>I need a little help converting a html page into a PDF document using html2pdf</p>
  
  <p>Their site gives a small example </p>
  
  <pre><code>$content = "
  &lt;page&gt;
  &lt;h1&gt;Exemple d'utilisation&lt;/h1&gt;
  &lt;br&gt;
  Ceci est un &lt;b&gt;exemple d'utilisation&lt;/b&gt;
  de &lt;a href='http://html2pdf.fr/'&gt;HTML2PDF&lt;/a&gt;.&lt;br&gt;
  &lt;/page&gt;";
  
  require_once(dirname(__FILE__).'/html2pdf/html2pdf.class.php');
  $html2pdf = new HTML2PDF('P','A4','fr');
  $html2pdf-&gt;WriteHTML($content);
  $html2pdf-&gt;Output('exemple.pdf');`
  </code></pre>
  
  <p>What I dont know how to do most effectively is make my html page that has a few PHP variables in it into a variable I can use here <code>$html2pdf-&gt;WriteHTML($content);</code></p>
  
  <p>is there a way to pull it from its own html file and have the server replace the variables and then make it a variable?</p>