I am using the restapi AddCampaign call to automate campaign creation.
I have discovered that when the message argument contains HTML with quotes, the quotes get escaped with backslashes when written to the database, and this then breaks the email messages that are sent.
A simple example:
<div id="myData">
auto generated stuff
</div>
is stored in the database as:
<div id=\"myData\">
auto generated stuff
</div>
When the same data is entered via phpList Send a campaign page, the HTML is saved in the database without the quotes being escaped.
I am hoping there is something simple I can do with the data passed to the API to prevent this, but nothing I have tried makes a positive difference.
Any ideas or suggestions?
Thanks!