title: convert html entities to unicode(utf-8) strings in c?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1082162/how-to-decode-html-entities-in-c">How to decode HTML Entities in C?</a>  </p>
  </blockquote>
  
  
  
  <p>This question is very similar to <a href="https://stackoverflow.com/questions/57708/convert-xml-html-entities-into-unicode-string-in-python">that one</a>, but I need to do the same thing in C, not python. Here are some <b>examples</b> of what the function should do:</p>
  
  <pre><code>input    output
  
  &amp;lt;     &lt;
  &amp;gt;     &gt;
  &amp;auml;   ä
  &amp;#x00DF; ß
  </code></pre>
  
  <p>The function should have the signature char *html2str(char *html) or similar. I'm not reading byte by byte from a stream.</p>
  
  <p>Is there a library function I can use?</p>