title: Weird characters in html text. Inserting `;` inside a variable string
body: <p>I am seeing weird characters while using html text in python. Its just this one name which is inserting weird character <code>;</code> into it.  </p>
  
  <p>My html text looks like this:</p>
  
  <pre><code>text="&lt;font name=Helvetica color=white size=8&gt;Name:  &lt;/font&gt;&lt;font name=Helvetica-Bold color=white size=8&gt;%s &lt;/font&gt;" % name
  </code></pre>
  
  <p>where <code>name = 'A&amp;B CDE F.'</code> But the output is: <code>'Name: A&amp;B; CDE F.'</code></p>