Close notes show HTML tagsS

asd22
Tera Contributor

Hello, mye html tags from my closed notes show up in the activity history. How do i stop this? additional commets works fine. 

asd22_0-1743420125668.png

 

5 REPLIES 5

Ankur Bawiskar
Tera Patron
Tera Patron

@asd22 

if someone is entering html tags manually while entering from workspace then you cannot control it.

but if you want you can remove the HTML tags using before insert business rule on sys_journal_field table

Condition: 

current.name == 'incident' && current.element == 'work_notes'

Script:

current.value = GlideSPScriptable().stripHTML(current.value);

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

The close note field is a HTML type, so the user have more ways to edit their text. But the issue is that the text then show up with the html tags. The tags arent manually put in

@asd22 

if it's html type then it will have tags in it.

share the field configuration?

I believe in the activity log it will show with html tags.

Is that what your question is?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@asd22 

Would you mind closing your earlier questions by marking appropriate response as correct?

Members have invested their time and efforts in helping you.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader