slack-ruby / slack-ruby-bot

The easiest way to write a Slack bot in Ruby.
MIT License
1.12k stars 187 forks source link

Unescape special Slack Characters #237

Open Startouf opened 5 years ago

Startouf commented 5 years ago

Slack performs encoding of special characters & < >. Those should be unencoded by the app but currently aren't.

So when in slack I type @myBot find students of MSc & MBA what is actually returned by match is

#<MatchData "find students of MSc &amp; MBA"

dblock commented 5 years ago

As long as we preserve backwards compatibility or make a clear breaking change and allow raw data to be retrieved I'd take a PR.