diff --git a/slack/chat.py b/slack/chat.py index 3ffed6f..701e538 100644 --- a/slack/chat.py +++ b/slack/chat.py @@ -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: