xmppjs / hubot-xmpp

XMPP adapter for Hubot
181 stars 101 forks source link

XEP-0071 Support #78

Open errodr opened 9 years ago

errodr commented 9 years ago

Does hubot-xmpp support the passing of messages that conform to XEP-0071 (hrefs, etc)? Trying to send formatted messages but it does not seem to be working. I am seeing literal markup in Adium when sending the following:

<message>
   <body>Test</body>
   <html xmlns='http://jabber.org/protocol/xhtml-im'>
      <body xmlns='http://www.w3.org/1999/xhtml'>
         <p>Test <a href='http://www.domain.com'>link</a></p>
      </body>
   </html>
</message>
markstory commented 9 years ago

How are you attempting to send the HTML content? There is an existing test for sending XHTML messages so I would expect it to work.

errodr commented 9 years ago

After a successful match I was just sending like so:

msg.send xhtmlContent

markstory commented 9 years ago

Is xhtmlContent a string?

errodr commented 9 years ago

Yes it is. Is that incorrect?

markstory commented 9 years ago

No it should be string filled with HTML. I'll see if I can hit the same problems locally.