Comment 4 for bug 592359

Revision history for this message
Gabor Karsay (gabor-karsay) wrote :

I don't see the point in reinventing standards (like HTML unescaping) again and again. This patch/def is taken from Fredrik Lundh at http://effbot.org/zone/re-sub.htm#unescape-html. The copyright statement of the website says: "Unless otherwise noted, source code can be be used freely. Examples, test scripts and other short code fragments can be considered as being in the public domain."

It works as is, "import re" is already done, "import htmlentitydefs" is not needed (I don't know why).