Converting HTML content of an field in a table to Plain Text of another table

mazin690
Tera Contributor

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

 

14 REPLIES 14

As per the screenshot, i could see email content having html tags, right. What is the issue here?

 

mazin690
Tera Contributor

i chcked in background as well...But still unable to get

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.

 

 

mazin690
Tera Contributor

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

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.