redmine-slack icon indicating copy to clipboard operation
redmine-slack copied to clipboard

remove HTML tags with sanitize

Open ozon opened this issue 9 years ago • 1 comments

This will fix sciyoshi/redmine-slack#32

  • add sanitize gem
  • cleanup msg with sanitize

ozon avatar May 21 '16 17:05 ozon

@ozon thanks for the patch! The code above that line is meant to be escaping HTML characters already - if we expect the input to be HTML-formatted, I think the plugin needs to do something other than simply sanitizing. I believe Slack's API doesn't allow HTML and expects Markdown-style formatting (see https://api.slack.com/docs/message-formatting#message_formatting)

sciyoshi avatar Jul 03 '16 16:07 sciyoshi