- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 11:52 PM
Hi Experts,
I need to trigger a email notification when a knowledge article is commented from the portal.
I have created a notification on the kb_feedback table which displays the user filled in comments in the Comments field.
In the email body i have queried ${comments}.
The email displays the comments but with html tags. Is there a way i can just display the user filled inputs and not the html tags.
Notification Body is as below -
${user} has updated a comment on the article authored by you:
${comments}
Attached email preview for reference
Solved! Go to Solution.
- Labels:
-
Knowledge Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 12:45 AM
Hello @Somujit1
You can create new email script to print comments and then use that script in your notification.
Example:
Mail script:
Name: writeComments
script:
Call script in notification:
${mail_script:writeComments}
Thanks,
Ali
Thank you,
Ali

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 12:45 AM
Hello @Somujit1
You can create new email script to print comments and then use that script in your notification.
Example:
Mail script:
Name: writeComments
script:
Call script in notification:
${mail_script:writeComments}
Thanks,
Ali
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 07:32 PM
Thanks for your reply @Ahmmed Ali. It worked
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 02:10 AM
Hi @Somujit1 ,
Hope you are doing great.
you can modify your notification body in HTML preview to display only the user's input without the HTML tags:
${user} has updated a comment on the article authored by you:
${GlideStringUtil.stripHTML(${comments})}
Regards,
Riya Verma
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-22-2023 07:34 PM
Thanks for your reply @Riya Verma . I tried using the GlideStringUtil with both stripHTML as you mentioned and escapeHTML, but it didnt seem to display the comments