Need to hide HTML tags in group approval table notes field data

Deepu9997
Tera Contributor

Im updating notes in group approval record it displays with html tags , I want to remove HTML tags in the list view in workspace.

1 REPLY 1

Yogesh11bhatt
Kilo Guru

Hi @Deepu9997 ,

The HTML tags are appearing because the Notes field contains HTML content and the Workspace list is rendering the raw value instead of displaying plain text.

A few approaches to resolve this:

  1. Store plain text instead of HTML when updating the Notes field:

notes = GlideStringUtil.unEscapeHTML(notes);
notes = notes.replace(/<[^>]*>/g, '');
current.notes = notes;
  1. Create a Display/Calculated field that strips HTML tags and use that field in the Workspace list instead of the original Notes field.

  2. If this is a Workspace configurable list, check whether the column supports HTML sanitization/plain text rendering and configure the field to display only text.

The recommended approach is to create a separate display field that removes HTML tags using server-side logic and use that field in the Workspace list, as it preserves the original rich-text content while showing clean text in list views.

Please mark as helpful if this answers your question.

Thanks,

Yogesh Bhatt