I have done numerous google searches and research on the topic but can’t find a working solution.
I’m creating a case in CRM 2011 (on premises) directly from an email tracked in outlook. The description shows all the html aswell has the text.
I have tried the following code on the cases form (onload) but I just get an error .
function OnCrmPageLoad()
{
//Create a factitious DOM element
var stubDescription = document.createElement( "<SPAN style='width:1px;height:1px'>");
//This field contains the email body (HTML)
var description = crmForm.all.description;
//Assign the HTML to the factitious DOM element
stubDescription.innerHTML = description.DataValue;
//Add it to the html document
document.body.appendChild( stubDescription );
//Assign the stripped body back to the description field
description.DataValue = stubDescription.innerText;
//remove the factitious DOM element
document.body.removeChild( stubDescription );
}
//Entry Point
OnCrmPageLoad();
Paul Johnson
*This post is locked for comments