preserve line breaks when sanitizing task notes
-
Hello,
Using the create_event API our application create tasks with Notes.
The problem is that these Notes can be long and our text gets all packed as line breaks are removed.
Whereas a task created manually from the admin panel, going in a Contact/Add Task, allows to input a <br> tags to insert line breaks.Would it therefore be possible to preserve line breaks in the “notes” field when events are created from the API?
As far as we could see this is due to the sanitize_text_field() function used in api/create_event.php.Thanks in advance,
PJ
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- You must be logged in to reply to this topic.