Hi Team,
I am trying to apply <br> tag inside the feedback message of the OS traditional web. But it renders the HTML tag in the text format instead of breaking the line.
Previously I used to apply the HTML tags with feedback messages, and it worked correctly. Is it not working due to any recent updates?
If anyone solved this usecase, pls do assist.
Thanks & Regards,
Saravanan Santhanam
Hi Saravanan,
Does the "previously" refer to Tradtional Web, and your current problem to Reactive? Because iirc there are differences there.
Also, did you try NewLine() instead of "<br/>"?
Hi Kilian,
I am currently facing this issue in traditional only. I stated previously mentioning my previous experience working with traditional web.
Let me try with NewLine().
Thanks, Kilian. It worked with Newline().
But I do have a question. If I want to implement the same with <br> tag or If I want to highlight the text inside the feedback message as bold.
what might be the case?
I don't think you can do that. Apparently, the Platform makes the input HTML-safe to precent HTML-injection (say a user enters some javascript in their name, then a message is shown with that name - oops!).
Thanks for the info @Kilian Hekhuis
You're most welcome :). Happy coding!
Following Killian's answer:
And its <br> and not </br>
Though that is true, the OP wrote "<br/>", not "</br>" :).
Potato potato, I was about to edit :D
But still, I would go with newline() as you mentioned
Well, "<br/>" is a valid tab, "</br>" is not :). See e.g. here.
Understood :D