HTML type field shows plain text in related list column

Felipe Morais
Tera Contributor

Hi guys

 

I'm facing an issue with a HTML field in the related list, it's not showing the HTML content, but the text with HTML tags, like this:

FelipeMorais_1-1710861583223.pngFrom my search this could be solved by turning the glide.ui.escape_html_list_field sys property to false, but i can't, even with security_admin elevated role, i get the following error message

FelipeMorais_0-1710861575576.pngIs there another way to fix this HTML field? Or a way to change this system property to false?

Thanks in advance,

FLM

4 REPLIES 4

AakashGarg1678
Kilo Guru

Hi @Felipe Morais.,

Hope you are doing good.

 

HTML fields are designed to be used on forms only, not for the list view as limited text can be shown in the columns when we go for viewing the data in list view.

For your reference, Attaching a link of Knowledge Base Article - HTML fields show raw HTML in list view, not user friendly

 

Besides it, there is a "System Property (glide.ui.escape_html_list_field)" that can be used to render the HTML Tags into Plain Text in List View, but it is not recommended to do so. This property prevents malicious code from running in the client's browser and also prevents cross-site scripting attacks when the property is set to true. Implications of changing glide.ui.escape_html_list_field 

If you find this answer as helpful to your question, you can mark this answer as helpful, and correct.

 

Thanks
Aakash Garg

ServiceNow Developer

Yes, that's the same issue with the other system property I mentioned, i can't deactivated it

 

Ivan Betev
Mega Sage
Mega Sage

Hi @Felipe Morais ,

 

I think I read somewhere that there are some properties that you won't be able to revert due to the security reasons, I presume this was one of them.

You can always talk to the ServiceNow support and convince them that you need it.

P.S. I'd stay away from HTML as far as possible 😄

 

Regards, Ivan

Mira1992
Kilo Sage

Hello Felipe,

have you ever found out?
I have a similar issue and I am a bit lost ...