Skip to content

Instantly share code, notes, and snippets.

@splitbrain
Created January 11, 2012 10:52
Show Gist options
  • Save splitbrain/1594144 to your computer and use it in GitHub Desktop.
Save splitbrain/1594144 to your computer and use it in GitHub Desktop.
mpdf backslash bug
<?php
$html = '
<p>Here should be one: \\ and here should be two \\\\</p>
<pre>Here should be one: \\ and here should be two \\\\</pre>
';
include("MPDF53/mpdf.php");
$mpdf=new mPDF();
$mpdf->WriteHTML($html);
$mpdf->Output();
exit;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment