Knowledge Article Comment Widget
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2019 07:11 AM
Hello All,
Posting a comment with the new knowledge article comment widget in the portal results in the kb_feedback comments field containing html tags around the comment text e.g. "Test" will show as "<p>Test</p>" in the comments field.
I understand that the widget is using a html text editor but is there a relatively easy way to not show the html tags in the comments field? Ideally an oob option but I'm guessing there is not such an option after the initial search I have done.
Regards,
Brendan
- Labels:
-
Knowledge Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2019 08:00 AM
Hi Brendan,
The HTML saved in the comments are used to render it back on the portal comments section. If you remove it then you would see it as plain text in the comments section. This to me is not ideally a good design as Comments is a String field and we generally use Comments in reporting.
Maybe, You can add a custom comments field on kb_feedback and copy the plain text portion of HTML comments into it and use it for reporting if that was your actual requirement.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-28-2019 09:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 02:23 AM
Hello,
Anny update on this behavior ??

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-23-2021 02:58 AM
Hello,
I do not think you have any OOTB support for removing these tags, so the comment in kb_feedback will have these tags if the feedback derives from the Portal Widget.
You should be able to handle this with some customisations, eg. with a Business Rule on the feedback table, you could then handle the HTML tags with a Regex, something similar to this should work: <\/?[^>]+(>|$)