How can we show plain text for comments and work notes in the list view?

christophosterm
Tera Contributor

Dear all,

Comments and Work Notes are displayed with HTML code in the list view.

find_real_file.png

Thus HTML code is also shown in an Excel Export.

We need this export to communicate with external consultants and the HTML makes the text very hard to read.

How can we show plain text in the list view and the excel export?

Thanks for your help and best regards,

Christoph

P.S.:

The issue with HTML text also appears in PDF exports of tickets.

However, if one creates a PDF via the "printer friendly version" (see below) this issue (i.e. HTML instead of plain text) does not appear!?

find_real_file.png

11 REPLIES 11

rob_pastore
ServiceNow Employee
ServiceNow Employee

It's not that the html "does not appear", the printer friendly version renders the html into text.



The database values have the html in the.   you can't strip that out.   All you can do is read it in a way that will take the html and show you the correct output.


Hi Robert,


Thanks for your answer.


Could you further specify what you mean with "All you can do is read it in a way that will take the html and show you the correct output"?


How do I do this?


Best regards,


Christoph


shloke04
Kilo Patron

Hi,



An easiest way would be to make the below mentioned Property Value as "False" which will automatically strip out the HTML Elements from the Field value.



glide.ui.security.allow_codetag



Navigate to sys_properties.LIST from Application Navigator search and make the above property Value as False to achieve your requirement.



find_real_file.png



Hope this helps.Mark the answer as correct/helpful based on impact.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Hi Shloke,


Thanks for your message.



Unfortunately, changing the Property Value to "False" did not help, the html code is still visible in the list view and the exports (Excel and PDF)


find_real_file.png



Is there anything else I need to change?



Best regards,


Christoph