title: PyFPDF, HTMLMixin, Python Unable to print HTML
body: <p>I am unable to output an HTML message using <a href="https://pyfpdf.readthedocs.io/en/latest/" rel="nofollow noreferrer">PyFPDF</a>.  When I attempt to <a href="https://pyfpdf.readthedocs.io/en/latest/reference/write_html/index.html" rel="nofollow noreferrer">write the HTML to the PDF document</a> I get an error:</p>
  <pre class="lang-none prettyprint-override"><code>Traceback (most recent call last):
    File &quot;/Users/elcid/Projects/so_test/test.py&quot;, line 8, in &lt;module&gt;
      pdf.write_html(&quot;&lt;b&gt;Sample HTML&lt;/b&gt;&quot;)
    File &quot;/Users/elcid/.pyenv/versions/so/lib/python3.9/site-packages/fpdf/html.py&quot;, line 400, in write_html
      text = h2p.unescape(text) # To deal with HTML entities
  AttributeError: 'HTML2FPDF' object has no attribute 'unescape'
  </code></pre>
  <p>The offending code:</p>
  <pre class="lang-py prettyprint-override"><code>from fpdf import FPDF, HTMLMixin
  
  class PDF(FPDF, HTMLMixin):
      pass
  
  pdf = PDF()
  pdf.add_page()
  pdf.write_html(&quot;&lt;b&gt;Sample HTML&lt;/b&gt;&quot;)
  pdf.output(&quot;html.pdf&quot;)
  </code></pre>
  <p>I am using Python 3.9.  Any insight?  Thank you!</p>