Comments as html in activity log

johann_thordars
Kilo Explorer

Hi.

We have change the comment field (additional comments) to act as HTML field. But now when I update incident the comment will be added to the activity log as a plain text with html tags in it.
How can I change this so that the comment will also be displayed as html in the activity log?

Johann

2 REPLIES 2

tony_fugere
Mega Guru

This might not be the perfect answer if you're using the WYSIWYG editor on your field, but this is how the Activity formatter will render HTML.

http://wiki.service-now.com/index.php?title=Using_Journal_Fields#Using_CODE_Tags_to_Render_HTML_in_a_Journal_Field


lilianm_vel
Kilo Contributor

Hello,


What I would do is as follows:
==> you have your HTML Field where you enter your comment
==> You create a new field (hidden to user) where you copy your comment removing your HTML field. There are scripts such as this: Remove HTML Tags in Javascript with Regex - Stack Overflow


==> you audit the hidden field and not your HTML field.