Converting HTML content of an field in a table to Plain Text of another table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2019 10:49 PM
How to convert the HTML content of an field from my incident form to the custom table (New Table) field which is Plain text?
Incident html field (u_Htext) - Type -- HTML
custom table field - (u_description) -- Type -- String
Any idea will be appreciatable
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 03:03 AM
As per the screenshot, i could see email content having html tags, right. What is the issue here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 02:33 AM
i chcked in background as well...But still unable to get

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 02:41 AM
Could you share the updated script (after you have changed the field name and sys_id values) that you ran in background.
Also kindly share the table structure of your new table.
Also, do note that the above script will INSERT a new record in the table.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 03:56 AM
Is Their is any other option, that whatever html format which i am holding in incident table ...the same has to be populate in my DeMO table's ( string field) ... i dont want them in DIV format.... i need the same exact format...wht ever ter in Incident's HTML field

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2019 04:02 AM
Hi Mazin,
Technically you have the same HTML as you have in the incident table including all div tags.
Since its a plain text field, the display will show as string only. However, in your custom views/pages, you can read this and can render as html.
Mark answer as correct if this answers your question.