Hi Jhansi,
Don't use the Java action which converts the string to plain text, instead of that use format string widget from Marketplace and connect that attribute to the format string widget
Hi Jhansi,
Instead of Java Action, you can use HTML Element widget from marketplace. This will help you display formatted data which you are storing into the attribute.
Widget Link: https://marketplace.mendix.com/link/component/204843
I hope this will help you.
Thanks