I am trying to create a change note in Freshservice using the v2 API. The change note contains html tags (<br> and <div> tags
). However, during creation, it seems the content is being sanitized and all the tags are removed except the first <div>
and last </div>
tags.
API URL: {{ _.FS_API_V2_URL}}/changes/2/notes
API Payload:
{
"body": "<div>Test</div>\n<div><br></div>\n<div>Test</div>\n<div><br></div>\n<div>Test</div>\n"
}
After it is saved, the same change note is retrieved as follows:
{
"note": {
"id": 510282,
"created_at": "2022-07-13T03:37:57Z",
"updated_at": "2022-07-13T03:37:57Z",
"body": "<div>Test\n\nTest\n\nTest\n</div>",
"body_text": "Test\n\nTest\n\nTest",
"user_id": 5155045,
"notify_emails": null
}
}