title: Enable to generate pdf (It give me plan html text in a file) - dompdf
body: <pre><code>$content['profile_data'] = file_get_contents(base64_decode($profile_data,true));
  $pdf = PDF::loadHtml(htmlentities($content['profile_data']));
  $pdf-&gt;setOptions(['setIsHtml5ParserEnabled'=&gt;true]);
  // $pdf-&gt;setPaper('A4','landscape');
  $pdf-&gt;stream();
  $pdf-&gt;save($path . '/' . $file_name.'.pdf');
  </code></pre>
  <p>The whole code seems ok. The html coming from a url. I am trying to save it in a file as pdf.</p>
  <p>But it gives me a plan Text HTML when i try to open. Please help me</p>
  <p>thanks</p>