question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] HTML (using textFormat='xml') message formatting is broken in 3.5.31 release

See original GitHub issue

Latest release of Emulator v3.5.31 has broken previously working HTML message formatting.

Before - v3.5.29 screen shot 2017-08-01 at 5 25 27 pm

After - v3.5.31 screen shot 2017-08-01 at 5 24 51 pm

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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tonyanzianocommented, Feb 20, 2019

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.

0reactions
vijaysaimutyalacommented, Feb 18, 2019

@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 ?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found