Convert text with html tags into rich text.

Hey everyone! I’m working on implementing a chat inside our project which is based on a real chat that is commonly used on different platforms. Basically, I’m somehow replicating the chat UI and functionality using their service, UMG and C++.

When I’m receiving a response containing a text message from the service, the message is received as a string, containing the actual message together with HTML tags which describes the format in which it was written in the real chat application. (Ex: This text is bold /n/n) .

What I’m trying to achieve is to set this text in Unreal at runtime using the same format, but I can’t find a proper way to do this.

The only way that I found is to use WebBrowserWidget and the LoadString which displays a web page based on the html code I provide. The format of the text is correct but it’s not possible to make the web widget resize based on the size of the text because WebBrwoserWidget was built with a different purpose.

Do you guys have any ideas on how to tackle this problem? Did you run into a similar situation in your experience? Would be happy for any related info. Thanks.