Unable to submit HTML in note text via API

Your software
My Mautic version is: 4.4.5
My PHP version is: 7.4.33
My Database type and version is: MySQL

Your problem
I cant find a way to supply rich/HTML content when using the add note API via /api/notes/new - it seems to strip HTML tags, just leaving the plain text.

When making the request, if I supply body;

{
"lead": "1160",
"text": "<strong>testABC</strong>",
"type": "email",
"dateTime": "2023-10-25 21:34:52"
}

I only get “text”: “testABC” in the response (and in the mautic UI).

Any ideas/suggestions much appreciated.

1 Like

Hi, you are doing nothing wrong. it’s broken.

1 Like