Unescape html escape sequences

Python has a handy module for this, so let's use it to fix escape codes
in messages.

Signed-off-by: Anna Schumaker <Anna@NoWheyCreamery.com>
This commit is contained in:
Anna Schumaker 2016-12-06 13:24:22 -05:00
parent 3ae8ce02b5
commit 01a61db2f8
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@ from . import api
from . import auth
from . import users
from datetime import datetime
import html
import textwrap
import re
@ -65,7 +66,7 @@ class Message:
line = line.replace("[#####]", "[%s]" % count, 1)
count += 1
lines += [ "" ] + textwrap.wrap(line)
lines += [ "" ] + textwrap.wrap(html.unescape(line))
links += link
if len(lines) == 0: