HTML in reports/list views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2013 11:38 AM
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.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2017 11:53 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-18-2018 02:52 AM
You can use [code][/code] tags. Have a look to my reply here...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2023 11:08 PM
Not a best practise to use [code][/code].Usage may cause security issues.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
What's a good alternative?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
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.
