finos / messageml-utils

MessageML is a markup language used by the Symphony Agent API for representing messages, including formatting (bold, italic, numbered and unnumbered lists etc.) and entity data representing structured objects.
https://docs.developers.symphony.com
Apache License 2.0
12 stars 28 forks source link

Support for text translation of MessageML from context #13

Closed ftbb closed 7 years ago

ftbb commented 7 years ago

Would be nice to have a helper method to retrieve a text view from a given context.

 String aBasicTextString = context.getText();

This would mean transforming mentions, cashtags, links etc into the respective text equivalents.

ldrozdz commented 7 years ago

Thanks for the suggestion! Is context.getMarkdown() outputting too much or incorrect formatting? If absolutely plain text, without any formatting, is desirable, we can certainly add it.

ldrozdz commented 7 years ago

Fixed in 575937c885efb7aa74ad8f0dff7490b306e9b58c