<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>Decoding numerical and name based HTML entities</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Verdana">Hi all,</FONT>
</P>

<P><FONT SIZE=2 FACE="Verdana">what would be the easiest way in Python to decode HTML entities to a unicode string? I would need a function that supports both numerical as well as name based HTML entities.</FONT></P>

<P><FONT SIZE=2 FACE="Verdana">I already did some googling, but I only found a function that decoded numerical ones, and this function didn't support unicode...</FONT></P>

<P><FONT SIZE=2 FACE="Verdana">Cheers,</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Verdana">pieter</FONT>
</P>

</BODY>
</HTML>