]>
jfr.im git - z_archive/twitter.git/blob - twitter/util.py
2 Internal utility functions.
4 `htmlentitydecode` came from here:
5 http://wiki.python.org/moin/EscapingHtml
10 from htmlentitydefs
import name2codepoint
12 def htmlentitydecode(s
):
14 '&(%s);' % '|'.join(name2codepoint
),
15 lambda m
: unichr(name2codepoint
[m
.group(1)]), s
)
17 __all__
= ["htmlentitydecode"]