Hi everyone,
I'm trying to send mails with XML structures for certain (but not all) incidents. The XML contains various information about the incident.
The problem is that even when I configure the workflow to only send text, it breaks up the XML structure like this:
<?xmlversion=3D"1.0" encoding=3D"utf-8"?>
<html>
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Diso-8859-=
1">
<INCIDENT><PROPERTY1>
</head>
<body>
Something</PROPERTY1>
<PROPERTY2>Something</PROPERTY2>
</INCIDENT>
</body>
</html>
HTML tags are inserted inside the XML structure (apparently at the point where actual text appears for the first time).
My only idea to solve this is to create a plug-in that runs on the creation of an e-mail entity and strips the HTML. Is there a better way to preserve the XML?
Categories: