lib/ruboty/adapters/slack_rtm.rb in ruboty-slack_rtm-1.3.0 vs lib/ruboty/adapters/slack_rtm.rb in ruboty-slack_rtm-1.3.1
- old
+ new
@@ -1,5 +1,6 @@
+require 'cgi'
require 'time'
require 'slack'
require 'slack-rtmapi'
require 'ruboty/adapters/base'
@@ -98,10 +99,10 @@
else # direct message
channel_to = data['channel']
end
robot.receive(
- body: data['text'],
+ body: CGI.unescapeHTML(data['text']),
from: data['channel'],
from_name: user['name'],
to: channel_to,
channel: channel,
user: user,