function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
LBartonLBarton 

Exchange Web Services and the comments field in Tasks

I have created a SF web service that will add tasks (specifically email messages) to the proper places such as the Accounts or Opportunities that the user has selected.  I have one problem.  In the Comments field, the message is in HTML so it looks strange.  I want just text but can't seem to find out how to get it to look at way.  Here is an example:

 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>This is a test message.&nbsp; Test again.</div>
<div>&nbsp;</div>
<div>Lynne</div>
</body>
</html>