Skip to content

Display HTML formatted table in Web Chat control  #105

@vijaysaimutyala

Description

@vijaysaimutyala

I'm trying to display a table in the web chat channel. I understand that Web Chat uses markdown for rendering text. But in the link suggests that we can pass textFormat to the activity to display a simple HTML table.

I tried passing the textFormat as 'xml' and a html table in the message content, but the web chat shows just the html content not the formatted table and I see the below in my log after the message is posted.

msrest.service_client:Accept header absent and forced to application/json

And I googled a bit and found that ms-rest for python==0.5.4 library has upgrades to support xml formatting and botbuilder-schema==4.0.0a6 currently uses msrest==0.4.29.

So is this the issue which is not rendering the html table properly. If not, what can be done so that I could send a clean table format to the bot in web chat. I tried sending markdown formatted tables using tabulate but it does not look good. Also tried using adaptive card, but with the amount of data I want to show, the adaptive cards does not seem to be a nice choice

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions