BotFramework-Emulator icon indicating copy to clipboard operation
BotFramework-Emulator copied to clipboard

XML message is broken in emulator

Open bpedersen opened this issue 9 years ago • 2 comments

I am unable to test my cards in the emulator as the xml is not parsed correctly. I get the following in the emulator, but it works in MSTeams. emulator xml issue

and here is the code for that let ticketList = '<ul>'; tickets.forEach(function (ticket) { ticketList += '<li><b>' + ticket.id + '</b> - <b>' + ticket.company.name + ':</b> <small>' + ticket.summary + ' </small></li>' }); ticketList += '</ul>'; var msg = new builder.Message(session) .textFormat(builder.TextFormat.xml) .text(ticketList); session.send(msg);

bpedersen avatar Feb 09 '17 15:02 bpedersen

@PiereDome The XML text format is a Skype-only format. While some of the other channels are also able to interpret XML formatting (MSTeams and Telegram, for example), many others cannot.

https://docs.botframework.com/en-us/csharp/builder/sdkreference/activities.html#textformat

Have you tried using Markdown? It also supports unordered lists.

Apologies for the inconvenience.

eanders-ms avatar Feb 09 '17 17:02 eanders-ms

I have. I was just trying to build more than just lists, but that makes sense. Thanks for the quick reply

bpedersen avatar Feb 10 '17 20:02 bpedersen