Is there a place where html_notes limitations are documented?
If I include
or even elements, I receive an error:
Exception: Request failed for https://app.asana.com returned code 400. Truncated server response: {“errors”:[{“error”:“xml_parsing_error”,“message”:“XML is invalid”
For instance
This variable works when added to the task payload: let htmlBody = "<body>This is a test task<b> that was created</b> using code. <b>New line of task:</b> with additional information.</body>"
These two fail with the error above:
This variable works when added to the task payload let htmlBody = "<body>This is a test task<b> that was created</b> using code.<br><br><b>New line of task:</b> with additional information.</body>"
or
let htmlBody = "<body><p>This is a test task<b> that was created</b> using code.</p><p><b>New line of task:</p> with additional information.</body>"
Correction on second htmlBody variable. The closing paragraph is correctly at the end of the string, before the body element. I was editing in line. Below is correct.
let htmlBody = "<body><p>This is a test task<b> that was created</b> using code.</p><p><b>New line of task: with additional information.</p></body>"