How to add BR P tage to HTML_NOTES section

Good day,

I am trying to do something very simple and yet turns out not. I am trying to add

tags inside HTML_NOTES section as I make an API call.

A simple call:

“data”: {
“html_notes”: “

This is a bold text.

This is an italic text.

This is an underlined text.

This is a strikethrough text.

This is a <a href="">hyperlink.

This is a line


Give me:

“errors”: [
“error”: “xml_parsing_error”,
“message”: “XML is invalid”,
“help”: “For more information on API status codes and how to handle them, read the docs on errors: Errors

What is it that I am missing? I tried to create line breaks using a series of: \\n etc and that did not give the result I want when user goes to Asana to view the task in the description field.

Any assistance would be appreciated.

Thank you.

Ok, so “\n” when sent in via postman works, but if using the API Explorer: Create a task, does not work. Again, why would can’t asana just give us a P and a BR tag and amke life simple…ug

1 Like

\n is indeed the correct way to do a line break.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.