Solved

HTML code in the Search filter


Hi, I created a ListView and I added a <br> in the column header so I can have the header in 2 rows.

Attached the info.

It's perfect in the table but now in the search field I can see the <br> that I don't want.

How can I have the header column in 2 rows without using <br>? or How can I remove the <br> from the search?

 

icon

Best answer by velRaj1 1 June 2021, 13:30

View original

2 replies

You can write custom script to replace "<br>" to ""


 


<script>$("li > a > span").text(function () { return $(this).text().replace("<br>", "").replace("<br>", ""); });</script>

Great, it's working. Thanks

Reply