Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

HTML in reports/list views

cdunn
Kilo Contributor

We have several fields in which have enabled HTML in order to give our end users a "pretty" view of data on a homepage. It works great on that page but when you look at the data in reports or list views the HTML tags display making the data difficult to read. Is there a way to either handle the HTML in list view/report view so that the tags are either excluded or that it is displayed with the correct bolding/font etc?

We have tried pdf which does successfully handle the HTML, however, we have too many necessary columns too display legibly in that format.

13 REPLIES 13

baseeth
Kilo Contributor

Hi Raking,



There is a system property "glide.ui.escape_html_list_field" which will remove the html tags from list view and will allow the users to read the content in the HTML field clearly in list view. I tried this in one of our instance and it is working fine.



The only issue that we face with this is even if we add 500 lines in the HTML field and it is reflecting the same in List view and we are not able to reduce the characters in List View.



Thanks for giving me the opportunity,


Baseeth.B


    --still a Learner


ralvarez
Tera Guru

You can use [code][/code] tags. Have a look to my reply here...

Show Link/URL in List with Display Value

Not a best practise to use [code][/code].Usage may cause security issues.

 

What's a good alternative?

The [code] tag can still be a valid option if you configure it securely.

 

The security concern Midilesh mentioned is specifically about script execution (XSS attacks), not about rendering HTML in general. ServiceNow provides a system property to address this:

glide.ui.security.codetag.allow_script set to false.

 

This configuration allows you to use [code] for formatting and links while automatically stripping out malicious scripts.