Displaying HTML Field as Normal Text
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2025 04:43 AM
I am currently working on the sn_grc_issue table, which includes an HTML-type field called Description. When I try to print the value of this field, the output includes HTML tags. However, I would like to render the HTML content as normal text instead. Specifically, if the HTML contains table tags, the output should be displayed in a tabular format.
Could anyone please guide me on how to achieve this?
SCRIPT:
Output:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2025 05:27 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-08-2025 05:30 AM
not possible directly to handle it.
you can remove html tags and get the plain text but you won't get the data in tabular format
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader