unescape html entities in tweets

workspace
Brendan Howell 8 years ago
parent 4150dd685f
commit 83a92c6f5e

@ -101,7 +101,7 @@ class PublicRelations(Bureau):
prn.text("\r\n")
prn.set(text_type="NORMAL")
twtext = html.unescape(t["text"])
t_wrapped = textwrap.fill(t["text"], width=48) + "\r\n"
t_wrapped = textwrap.fill(twtext, width=48) + "\r\n"
t_enc = t_wrapped.encode("cp437", "ignore")
prn._raw(t_enc)

Loading…
Cancel
Save