Text editor BDK and Postmark template API


I’m using text editor BDK to generate very simply HTML content ( ul li list ) but when I try to send a transactional email using Postmark templates API I got an error due the HTML code generated by the text editor:

<div id="btewrapperdiv" style="font-size:14px;color:rgb(37, 37, 37);background-color:rgb(241, 241, 241);font-size:14px;font-style:normal;font-weight:400;text-decoration:none solid rgb(37, 37, 37);font-family:Questrial;line-height:1.72;"><ul><li>installazione e settings di plugin per hardening sicurezza</li><li>aggiornamento del CMS</li></ul><p><br></p></div>

the API JSONe response is this:

{“ErrorCode”:402,“Message”:“Received invalid JSON input.”}

Anyone has a suggestion for this kind of issue?

Hi @wordpresschef,

That means the request isn’t properly formatted in JSON. Try using the :formatted as JSON-safe operator.