[Bug] HTML (using textFormat='xml') message formatting is broken in 3.5.31 release
See original GitHub issueLatest release of Emulator v3.5.31 has broken previously working HTML message formatting.
Before - v3.5.29
After - v3.5.31
Code Example - Node.js SDK
bot.dialog('html_table', function (session) {
var tableHTML = '<table style="padding:10px;border:1px solid black;"><tr style="background-color:#c6c6c6"><th>Countries</th><th>Capitals</th><th>Population</th><th>Language</th></tr><tr><td>USA</td><td>Washington D.C.</td><td>309 million</td><td>English</td></tr><tr><td>Sweden</td><td>Stockholm</td><td>9 million</td><td>Swedish</td></tr></table>';
var message = {
type: 'message',
textFormat: 'xml',
text: tableHTML
};
session.send(message).endDialog();
});
Expected: HTML message formatting is supported in Emulator.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
142443 – Libre Office Writer breaks the text adding unwanted ...
It is a critical bug when you have to paste the text in the Wordpress "preformatted blocks" or having to work with HTML!...
Read more >Formatting and Indenting XML Documents - Oxygen 18.1
Oxygen XML Developer creates XML documents using several edit modes. In Text mode, you as the author decide how the XML file is...
Read more >434 - XML display is unformatted - chromium - Monorail
If your symptoms are as in the original bug, I have some good news: this very bug is now fixed, you should be...
Read more >Group Office groupware and CRM - SourceForge
American time format bug in calendar - Bug fix for attachment ... folder was broken - Small problem with HTML to text conversion...
Read more >Chapter 37. What is New? - DVT Eclipse IDE
DVT-1761 Create a predefined project with examples for Run Configurations, Code Factory templates, Custom Dialogs etc. DVT-16186 Add support for # ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hello @vijaysaimutyala ,
We currently don’t have a custom build for the emulator that has HTML enabled in the embedded Web Chat control. However, if you really need HTML support, you could fork the Emulator repo, and instead of using the provided version of Web Chat, use your own local custom build of Web Chat that enables HTML.
@danmarshall @nwhitmont Is HTML now supported by the emulator? I’m on v4.2.1 but still see the tags not rendered. The web chat is supporting HTML when u do a custom build enabling the html as in the post. Do we have to do a custom build for the emulator as well to enable html ?