hipchat / hubot-hipchat

HipChat adapter for GitHub's Hubot
https://www.hipchat.com/help/page/bots
MIT License
666 stars 252 forks source link

Escaping characters #285

Open jugler opened 7 years ago

jugler commented 7 years ago

Hi!, awesome project!

Been writing a bot for my team, and we are sending some links from hubot to hipchat, but it seems they are getting escaped and causing issues when opening them, for example I send this from hubot: hello&me

And in Hipchat it receives: hello&me

This makes broken links. Is there a way to achieve this?

jugler commented 7 years ago

ping?

mihaiturcu commented 6 years ago

I found a dumb workaround by using the replace functionality.

  msg.send "/code #{stdout}"
  msg.send "s/amp;//"

Basically send another msg and strip away the amp; Feel free to send me a beer, i've been scavenging the freaking internetz for an answer and there ain't a better one.