- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2023 01:06 PM - edited 07-26-2023 01:07 PM
Hello,
I wrote a notification on the kb_feedback table. I want to get the comment from the, but its keeping the HTML tag. Any assistance would be greatly appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 06:40 AM
This is happening because comments are stored with html tags around it.
Instead of using ${comments} directly do following (example):
can create new email script (System Notification>email>Notification 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}
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 01:42 AM
Check Source code of html in notification. Source code like below
I have tried this and it is working on kb_knowledege feedback table also.
Please check and Mark Helpful and Correct if it really helps you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 01:53 AM
Click on source code
and remove the <p> and </p> around comments.
If you dont find anything there then post a screenshot of the source code.
Regards,Sushant Malsure
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 06:31 AM
Good morning. thank you for your response. When I remove the tags and hit save, it reapplies them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2023 02:09 AM
Try going on the source code from the tool bar in the Message HTML and remove the tags
Regards,
Piyush Sain