Issue with HTML formatting

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-23-2024 01:58 AM
I had an requirement where whatever is coming through Inbound Email Action, to copy its template in Email Template. For this I built the below solution:
In my Inbound Email Action I copied that value in comments:
var htmlContent = '[code] ' + email.body_html + '[/code]';
current.comments = "reply from: " + email.origemail + "\n\n" + htmlContent;
And in email template, adding the ${comments}.
This is helping me in getting the requirement done. However I am facing new issue after this where in some cases when a formatting is used in inbound, it is somehow adding that formatting to the other fields while trying to search manually by adding the value.
In the attached picture the below table has blue and grey color in the comments, so while searching assigned to by writing the name manually, it is appending the color of that.
I tried checking however it is not with all the case and happening only sometime. Need help in resolving the same.