title: printing html entities using lxml in python
body: <p>I'm trying to make a div element from the below string with html entities. Since my string contains html entities, <code>&amp;</code> reserved char in the html entity is being escaped as <code>&amp;amp;</code> in the output. Thus html entities are displayed as plain text. How can I avoid this so html entities are rendered properly?   </p>
  
  <pre><code>s = 'Actress Adamari L&amp;#243;pez And Amgen Launch Spanish-Language Chemotherapy: Myths Or Facts&amp;#8482; Website And Resources'
  
  div = etree.Element("div")
  div.text = s
  
  lxml.html.tostring(div)
  
  output:
  &lt;div&gt;Actress Adamari L&amp;amp;#243;pez And Amgen Launch Spanish-Language Chemotherapy: Myths Or Facts&amp;amp;#8482; Website And Resources&lt;/div&gt;
  </code></pre>