
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2019 11:01 AM
I have an inbound action where I need to put the email body into the description field. How can I get it without all the HTML code but not loose the format?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2019 12:13 PM
I was able to do it with this code. We where only getting the <br/> as the html in the body.
var emailBody = email.body_html.toString().replace(/<br\/>/g, "\n");
current.description = emailBody;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2019 12:13 PM
I was able to do it with this code. We where only getting the <br/> as the html in the body.
var emailBody = email.body_html.toString().replace(/<br\/>/g, "\n");
current.description = emailBody;