You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be convenient to have a .text_content property on wrapper.Event which parses the HTML and returns a plain-text version of a message (html/xml entities interpreted, tags removed).
The text was updated successfully, but these errors were encountered:
Something that would be interesting to think about is html2text, which could give us markdown text from the incoming messages. However, this would probably be less useful for most bots than simply ignoring the HTML tags, so I'll probably use the built-in HTMLParser.HTMLParser().unescape().
(edit: oh, that method doesn't strip HTML tags, so it isn't enough.)
It would be convenient to have a
.text_content
property onwrapper.Event
which parses the HTML and returns a plain-text version of a message (html/xml entities interpreted, tags removed).The text was updated successfully, but these errors were encountered: