title: FPDF WriteHtml is not working
body: <p>I'm trying to generate a pdf in wordpress using fpdf but when I try to write  a html content it gives me nothing and page stuck to reload when ever I write the WriteHtml function.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;?php
  require('fpdf/fpdf.php');
  
  $pdf=new FPDF();
  $pdf-&gt;AddPage();
  
  $pdf-&gt;SetFont('Arial','B',16);
  $pdf-&gt;WriteHTML('You can&lt;br&gt;&lt;p align="center"&gt;center a line&lt;/p&gt;and add a horizontal rule:&lt;br&gt;&lt;hr&gt;');
  $pdf-&gt;Output('E:\xampp\spy2html.pdf','F');
  ?&gt;
  </code></pre>
  
  <p>here is my html which i want to add</p>
  
  <pre><code>&lt;div id="finalOutput"&gt;
              &lt;h2 class="llms-quiz-results-title"&gt;'.printf( __( "Attempt #%d Results", "lifterlms" ), $attempt-&gt;get( "attempt" ) ); .'&lt;/h2&gt;
  
              &lt;aside class="llms-quiz-results-aside"&gt;
                  '. echo llms_get_donut( $attempt-&gt;get( "grade" ), $attempt-&gt;l10n( "passed" ), "default", $donut_class );.'
              &lt;/aside&gt;
  
              &lt;section class="llms-quiz-results-main"&gt;
                  &lt;ul class="llms-quiz-meta-info"&gt;
                      &lt;li class="llms-quiz-meta-item"&gt;'. printf( __( "Status: %s", "lifterlms" ), $attempt-&gt;l10n( "passed" ) );.'&lt;/li&gt;
                      &lt;li class="llms-quiz-meta-item"&gt;&lt;?php printf( __( "Grade: %s", "lifterlms" ), round( $attempt-&gt;get( "grade" ), 2 ) . "%" ); ?&gt;&lt;/li&gt;
                      &lt;li class="llms-quiz-meta-item"&gt;&lt;?php printf( __( "Correct Answers: %1$d / %2$d", "lifterlms" ), $attempt-&gt;get_count( "correct_answers" ), $attempt-&gt;get_count( "questions" ) ); ?&gt;&lt;/li&gt;
                      &lt;li class="llms-quiz-meta-item"&gt;&lt;?php printf( __( "Completed: %s", "lifterlms" ), $attempt-&gt;get_date( "start" ) ); ?&gt;&lt;/li&gt;
                      &lt;li class="llms-quiz-meta-item"&gt;&lt;?php printf( __( "Total time: %s", "lifterlms" ), $attempt-&gt;get_time() ); ?&gt;&lt;/li&gt;
                      &lt;?php if ( $quiz-&gt;show_quiz_results() ) : ?&gt;
                          &lt;li class="llms-quiz-meta-item"&gt;&lt;a class="view-summary" href="#"&gt;&lt;?php _e( "View Summary", "lifterlms" ); ?&gt;&lt;/a&gt;&lt;/li&gt;
                      &lt;?php endif; ?&gt;
                  &lt;/ul&gt;
              &lt;/section&gt;
          &lt;/div&gt;
  </code></pre>