119
Views
11
Comments
Solved
br tag in feedback message
Application Type
Traditional Web
Platform Version
11.18.1 (Build 38276)

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


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

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/>"?

2022-01-13 08-29-52
Saravanan Santhanam

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().

2022-01-13 08-29-52
Saravanan Santhanam

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?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

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!).

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
2021-06-02 20-50-04
Márcio Carvalho

Following Killian's answer:

And its <br> and not </br>

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Though that is true, the OP wrote "<br/>", not "</br>" :).

2021-06-02 20-50-04
Márcio Carvalho

Potato potato, I was about to edit :D

But still, I would go with newline() as you mentioned

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Well, "<br/>" is a valid tab, "</br>" is not :). See e.g. here.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.