Multiple lines in lightbox textarea

in the lightbox, i have put a textarea field.
Some users paste texte with multiple lines.
saving the task is ok but when i refresh the gantt i get an error about parsing JSON datas.

Someone know how to fix this bug ?

Unfortunately, I couldn’t reproduce the issue in the following snippet: