Hi Neerav
Doesn’t seem to be working for me!
Here’s where I put the code:
$html .= htmlspecialchars_decode(htmlentities($post->post_content, ENT_NOQUOTES, 'UTF-8', false), ENT_NOQUOTES);
$dom = new simple_html_dom();
$dom->load($html);
foreach($dom->find('img') as $e){
$e->align = null;
$e->outertext = '<div style="text-align:center;">' . $e->outertext . '</div>';
}
$html = $dom->save();
$dom->clear();
$html .= $myString;
$html .= "<p>Notes to the editor<p/>";
// Print text using writeHTML
$pdf->writeHTML($html, true, 0, true, 0);
// ---------------------------------------------------------
// Close and output PDF document
// This method has several options, check the source code documentation for more information.
website: https://www.ooh-websites.co.uk/ovalmedical/oval-medical-collaborates-with-the-cambridge-university-mba-venture-project-2/
Any ideas or have I simply put it in the wrong place?!